Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
sshd missing /var/empty
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
BiggJ
Guru
Guru


Joined: 07 Nov 2003
Posts: 384
Location: /usr/share/ \ zoneinfo/America/Los_Angeles

PostPosted: Thu Dec 11, 2003 6:01 pm    Post subject: sshd missing /var/empty Reply with quote

Last night, I shutdown my machine and when I rebooted, sshd gave the following message when restarting:

Code:
 * Starting sshd...
Missing privilege separation directory: /var/empty                        [ !! ]


I checked for /var/empty and it wasn't there:

Code:
hayden var # file /var/empty
/var/empty: Can't stat `/var/empty' (No such file or directory)


I created it and restarted sshd and everything worked fine.

My question is, why did this happen? Is this a symptom of a bigger problem?

--J
Back to top
View user's profile Send private message
mirko_3
l33t
l33t


Joined: 02 Nov 2003
Posts: 605
Location: Birreria

PostPosted: Thu Dec 11, 2003 6:17 pm    Post subject: Reply with quote

you just updated ssh, and the new version requires that directory to run chrooted in it, I think.. anyway, mkdir /var/empty is how I and other people on this forum solved it... search before posting ;-)
_________________
Non fa male! Non fa male!
Back to top
View user's profile Send private message
Clock
n00b
n00b


Joined: 12 Nov 2003
Posts: 9
Location: Prague, Czechlands

PostPosted: Wed Dec 17, 2003 9:12 am    Post subject: Reply with quote

Why doesn't the ssh update ebuild create this directory?
Back to top
View user's profile Send private message
Clock
n00b
n00b


Joined: 12 Nov 2003
Posts: 9
Location: Prague, Czechlands

PostPosted: Wed Dec 17, 2003 9:13 am    Post subject: Reply with quote

Why doesn't the ssh update ebuild create this directory?
Back to top
View user's profile Send private message
dice
Guru
Guru


Joined: 21 Apr 2002
Posts: 577

PostPosted: Wed Dec 17, 2003 9:18 am    Post subject: Reply with quote

It should. There's a line in my ebuild (openssh-3.7.1_p2-r1.ebuild) to do so:

Code:
pkg_postinst() {
    # empty dir for the new priv separation auth chroot..
    install -d -m0755 -o root -g root ${ROOT}/var/empty
(...)
Back to top
View user's profile Send private message
Spooky Ghost
Apprentice
Apprentice


Joined: 19 Apr 2002
Posts: 210
Location: Bristol, United Kingdom

PostPosted: Wed Dec 17, 2003 10:31 am    Post subject: Reply with quote

It looks like that line is there in all the openssh ebuilds. Perhaps it is getting cleaned up by auto clean at the end of the merge?? There are keepdir lines in the ebuilds which should create an empty file called .keep to stop it being removed. Perhaps it is necessary to:

Code:
touch /var/empty/.keep
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum