View previous topic :: View next topic |
Author |
Message |
BiggJ Guru
Joined: 07 Nov 2003 Posts: 384 Location: /usr/share/ \ zoneinfo/America/Los_Angeles
|
Posted: Thu Dec 11, 2003 6:01 pm Post subject: sshd missing /var/empty |
|
|
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 |
|
|
mirko_3 l33t
Joined: 02 Nov 2003 Posts: 605 Location: Birreria
|
Posted: Thu Dec 11, 2003 6:17 pm Post subject: |
|
|
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 |
|
|
Clock n00b
Joined: 12 Nov 2003 Posts: 9 Location: Prague, Czechlands
|
Posted: Wed Dec 17, 2003 9:12 am Post subject: |
|
|
Why doesn't the ssh update ebuild create this directory? |
|
Back to top |
|
|
Clock n00b
Joined: 12 Nov 2003 Posts: 9 Location: Prague, Czechlands
|
Posted: Wed Dec 17, 2003 9:13 am Post subject: |
|
|
Why doesn't the ssh update ebuild create this directory? |
|
Back to top |
|
|
dice Guru
Joined: 21 Apr 2002 Posts: 577
|
Posted: Wed Dec 17, 2003 9:18 am Post subject: |
|
|
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 |
|
|
Spooky Ghost Apprentice
Joined: 19 Apr 2002 Posts: 210 Location: Bristol, United Kingdom
|
Posted: Wed Dec 17, 2003 10:31 am Post subject: |
|
|
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 |
|
|
|