Hi, I'm trying to mount samba shares onto the file system, but at the moment i only seem to be able to mount them as root. I've tried changing the permissions on the mount point and even mounting it on a subdir of my home directory but mount just keeps telling me that only root can do this. I've put an entry for the mount in /etc/fstab with the user option, what have i missed? I'm using samba 2.0.7 on RedHat 7, help would be much appreciated. -- --------------------------------------------------------------------- Chris Jensen cjensen@edex.com.au Educational Experience (Australia) Postal Address: PO Box 860, Newcastle NSW 2300 Freecall: 1-800-025 270 International: +61-2-4923 8222 Fax: (02) 4942 1991 International: +61-2-4942 1991 Visit our online Toy store! http://www.toysandmore.com.au/ ---------------------------------------------------------------------
Hi Chris, I had this exact same problem, and have solved it, sorta -- though not with mount. I use smbmount for this. In the man page for smbmnt (used by smbmount), it suggests that it is meant to be installed setuid root. It wasn't on my system. I set it (anyone know of any security problems with this?) and smbmount works. I use a mount point under my user directory, and have the command in my Gnome startup so it only runs when I log in. --eeyore> -----Original Message----- > From: samba-admin@us5.samba.org [mailto:samba-admin@us5.samba.org]On > Behalf Of Chris Jensen > Sent: Monday, February 05, 2001 4:59 PM > To: samba@samba.org > Subject: Mounting samba shares > > > Hi, > I'm trying to mount samba shares onto the file system, but at the moment > i only seem to be able to mount them as root. I've tried changing the > permissions on the mount point and even mounting it on a subdir of my > home directory but mount just keeps telling me that only root can do > this. I've put an entry for the mount in /etc/fstab with the user > option, what have i missed? > I'm using samba 2.0.7 on RedHat 7, help would be much appreciated. > > -- > --------------------------------------------------------------------- > Chris Jensen cjensen@edex.com.au > > Educational Experience (Australia) > Postal Address: PO Box 860, Newcastle NSW 2300 > Freecall: 1-800-025 270 International: +61-2-4923 8222 > Fax: (02) 4942 1991 International: +61-2-4942 1991 > > Visit our online Toy store! http://www.toysandmore.com.au/ > --------------------------------------------------------------------- >
Hi Chris, In fact, smbmount DOES require the executor of that command to be the root user. There is a check in the code to ensure this. This is similar to the nfs mount requirement that nfs mounts be made by root. The subsequent access to the files and directories under that mount are then governed by the permissions on those files and directories. hope this helps, Don -----Original Message----- From: Chris Jensen [mailto:cjensen@edex.com.au] Sent: Monday, February 05, 2001 17:59 To: samba@samba.org Subject: Mounting samba shares Hi, I'm trying to mount samba shares onto the file system, but at the moment i only seem to be able to mount them as root. I've tried changing the permissions on the mount point and even mounting it on a subdir of my home directory but mount just keeps telling me that only root can do this. I've put an entry for the mount in /etc/fstab with the user option, what have i missed? I'm using samba 2.0.7 on RedHat 7, help would be much appreciated. -- --------------------------------------------------------------------- Chris Jensen cjensen@edex.com.au Educational Experience (Australia) Postal Address: PO Box 860, Newcastle NSW 2300 Freecall: 1-800-025 270 International: +61-2-4923 8222 Fax: (02) 4942 1991 International: +61-2-4942 1991 Visit our online Toy store! http://www.toysandmore.com.au/ ---------------------------------------------------------------------
Christopher, True enough - but be careful of the security implications of a non-root user being allowed to mount and unmount filesystems onto your unix system... cautiously yours, don -----Original Message----- From: Christopher Robison [mailto:eeyore@earthdome.com] Sent: Monday, February 05, 2001 18:10 To: samba@samba.org Subject: RE: Mounting samba shares Hi Chris, I had this exact same problem, and have solved it, sorta -- though not with mount. I use smbmount for this. In the man page for smbmnt (used by smbmount), it suggests that it is meant to be installed setuid root. It wasn't on my system. I set it (anyone know of any security problems with this?) and smbmount works. I use a mount point under my user directory, and have the command in my Gnome startup so it only runs when I log in. --eeyore> -----Original Message----- > From: samba-admin@us5.samba.org [mailto:samba-admin@us5.samba.org]On > Behalf Of Chris Jensen > Sent: Monday, February 05, 2001 4:59 PM > To: samba@samba.org > Subject: Mounting samba shares > > > Hi, > I'm trying to mount samba shares onto the file system, but at the moment > i only seem to be able to mount them as root. I've tried changing the > permissions on the mount point and even mounting it on a subdir of my > home directory but mount just keeps telling me that only root can do > this. I've put an entry for the mount in /etc/fstab with the user > option, what have i missed? > I'm using samba 2.0.7 on RedHat 7, help would be much appreciated. > > -- > --------------------------------------------------------------------- > Chris Jensen cjensen@edex.com.au > > Educational Experience (Australia) > Postal Address: PO Box 860, Newcastle NSW 2300 > Freecall: 1-800-025 270 International: +61-2-4923 8222 > Fax: (02) 4942 1991 International: +61-2-4942 1991 > > Visit our online Toy store! http://www.toysandmore.com.au/ > --------------------------------------------------------------------- >
Possibly Parallel Threads
- [off topic] [research] Interviews for contributors over 50 for Oregon State University research
- Multiple login failures problem
- Samba, NT4 and W2K trust/authentication problem.
- freecall.com - has anybody tried it?
- [Bug 926] pam_session_close called as user or not at all