Your message dated Wed, 28 Dec 2011 00:07:43 +0000
with message-id <[email protected]>
and subject line Bug#653172: Removed package(s) from unstable
has caused the Debian Bug report #332717,
regarding autofs fails to mount smb as root at boot time
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
332717: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=332717
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: autofs
Version: 4.1.4-7
autofs has always refused to mount smbfs correctly at boot time. I thought it
was some weird problem, since right after starting the system, i could do an
/etc/init.d/autofs restart and smbfs partition would be mounted correctly
(using "sudo"). But today I just came up to think that maybe it was because it
was trying to access samba as root. And hey, I was right! I suggest the
/etc/init.d/autofs was run as a special "samba" user.
As a quick walkaround I have done the following to make my life easier while no
official fix exists. So all that people sufffering from my same problem can
jsut do the same as I did:
1) Make sure you have the following non-debian-standard-packages installed:
sudo smbfs autofs
2) Add the following to the beggining of /etc/init.d/autofs (right after the
legal stuff) ->
# This is a walkaround for autofs to work with smbfs from the boot moment
# smbfs doesn't like being mounter by root, so let's hide it
test x$AUTOFSRUNNING != xyes && case "$1" in
start|restart|force-reload|reload)
test $UID -eq 0 && exec su samba -c "AUTOFSRUNNING=yes sudo
/etc/init.d/autofs restart"
exit $?
;;
esac
3) Add the following to /etc/sudoers ->
samba ALL=(root) NOPASSWD: /etc/init.d/autofs
4) Run the following command (as root) ->
useradd -g samba samba
if the above fails, just do ->
useradd samba
And that's it. It should work from the very boot time on next system restart.
I hope that helped.
Greets and please fix this properly!
--- End Message ---
--- Begin Message ---
Version: 4.1.4+debian-3+rm
Dear submitter,
as the package autofs has just been removed from the Debian archive
unstable we hereby close the associated bug reports. We are sorry
that we couldn't deal with your issue properly.
For details on the removal, please see http://bugs.debian.org/653172
The version of this package that was in Debian prior to this removal
can still be found using http://snapshot.debian.org/.
This message was generated automatically; if you believe that there is
a problem with it please contact the archive administrators by mailing
[email protected].
Debian distribution maintenance software
pp.
Luca Falavigna (the ftpmaster behind the curtain)
--- End Message ---