How to allow users to mount smb shares in FC5?

Roger Grosswiler roger at gwch.net
Tue Apr 11 13:52:48 UTC 2006


> Hi, people,
>
> In FC4, I used to set SUID in /usr/bin/smbmnt and /usr/bin/smbumount,
> so that ordinary users could mount and umount smb shares in their
> home directories. However, these programs don't exist in FC5. I can
> mount smb shares using "mount -t cifs" as root, but how do I set up
> the system so that ordinary users can mount smb shares, as they did
> in FC4?
>
> Thanks,
>
> Marcelo
>
how i did (suboptimal)

entering group users as sudoers using visudo, set them to
group% ALL:/usr/sbin/mount (not a 100% sure, did this before days...)

then your users can mount using sudo. you can then write a nice little
script with mount -t cifs -o credentials... where you can put username and
password in an encrypted hidden file in users directory.

Any better solution is kindly welcome!

Roger




More information about the fedora-list mailing list