When mounting samba drives, I added this to the /etc/fstab file. /NTOPS4/home /mnt/NTops4 smbfs noexec,nosuid,nodev,username=pbarber,fmask=666,user,owner 0 0 //nic-ex04/home /mnt/netsol-nic-ex04 smbfs noexec,nosuid,nodev,username=pbarber,fmask=666,user,owner 0 0 So basically, I want to mount as user pbarber (the auto part) a samba drive share, without having to be root. I have made the /usr/bin/smbmnt program suid (shivers). When using the usermount tool (as user pbarber), the prompt for the password never comes up, the password prompt comes up in the terminal window from where usermount was launched. Then there is no opportunity to type in the password, as the job stops on tty input. A simple popup box prompting for the password would be a good way to fix this program. It appears that usermount doesn't correctly anticipate getting shoved off to smbmount, instead of the typical mount utility. "mount" from the command line does not work, either, I get the following error: pbarber@redhat pbarber]$ mount /mnt/NTops4/ Password: (my secret password onto the machine) cannot mount on /mnt/NTops4: Operation not permitted smbmnt failed: 1 mount.smbfs: ioctl failed, res=-1 Could not umount /mnt/NTops4: Operation n
Please use creditials=<file> in your file description entry to do this. usermode shouldn't prompt for password then. See smbmount(8). Place the creditials file in some safe location. If you need pbarber to own the smb mounts, you can create the file in /home/pbarber and chmod it to 600. Jindrich