Bug 11253 - Samba drive mount in Usermount
Summary: Samba drive mount in Usermount
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: usermode
Version: 6.2
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Jindrich Novy
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2000-05-05 20:27 UTC by Piet E Barber
Modified: 2013-07-02 22:54 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2004-10-03 09:24:41 UTC
Embargoed:


Attachments (Terms of Use)

Description Piet E Barber 2000-05-05 20:27:48 UTC
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

Comment 1 Jindrich Novy 2004-10-03 09:24:41 UTC
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


Note You need to log in before you can comment on or make changes to this bug.