I'm trying to setup a line in /etc/fstab so I can access samba shares easily. However, it seems like I need to setuid root the smb* apps. However, 8.2 keeps complaining that libsmb based programs cannot be setuid root and then won't run. How can I get around this problem? I don't want to login as root each time I want to mount/unmount samba share. Greg
On Wednesday October 27, 2004 12:59 pm, Greg Macek wrote:
I'm trying to setup a line in /etc/fstab so I can access samba shares easily. However, it seems like I need to setuid root the smb* apps. However, 8.2 keeps complaining that libsmb based programs cannot be setuid root and then won't run.
How can I get around this problem? I don't want to login as root each time I want to mount/unmount samba share.
Greg
Use /etc/samba/smbfstab. This is the preferred method for mounting remotely hosted Samba shares. -- __________________________________________________________ A Message From... L. Mark Stone Reliable Networks of Maine, LLC 477 Congress Street Portland, ME 04101 (207) 772-5678
On Wednesday October 27, 2004 12:59 pm, Greg Macek wrote:
I'm trying to setup a line in /etc/fstab so I can access samba shares easily. However, it seems like I need to setuid root the smb* apps. However, 8.2 keeps complaining that libsmb based programs cannot be setuid root and then won't run.
How can I get around this problem? I don't want to login as root each time I want to mount/unmount samba share.
Greg
Use /etc/samba/smbfstab. This is the preferred method for mounting remotely hosted Samba shares.
-- Looks interesting. The docs in the file mention this only for mounting on boot. How can I use this to mount at runtime and for any user? Is
On Wed, 2004-10-27 at 13:39 -0400, L. Mark Stone wrote: there a corresponding entry in /etc/fstab for anything?
On 19:39 Wed 27 Oct , Greg Macek wrote:
On Wednesday October 27, 2004 12:59 pm, Greg Macek wrote:
I'm trying to setup a line in /etc/fstab so I can access samba shares easily. However, it seems like I need to setuid root the smb* apps. However, 8.2 keeps complaining that libsmb based programs cannot be setuid root and then won't run.
How can I get around this problem? I don't want to login as root each time I want to mount/unmount samba share.
Greg
Use /etc/samba/smbfstab. This is the preferred method for mounting remotely hosted Samba shares.
-- Looks interesting. The docs in the file mention this only for mounting on boot. How can I use this to mount at runtime and for any user? Is
On Wed, 2004-10-27 at 13:39 -0400, L. Mark Stone wrote: there a corresponding entry in /etc/fstab for anything?
-- Check the headers for your unsubscription address For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com Please read the FAQs: suse-linux-e-faq@suse.com
This is what I use in fstab:
//client/f /mnt/client smbfs
user,uid=
On Wednesday 27 October 2004 11:59 am, Greg Macek wrote:
I'm trying to setup a line in /etc/fstab so I can access samba shares easily. However, it seems like I need to setuid root the smb* apps. However, 8.2 keeps complaining that libsmb based programs cannot be setuid root and then won't run.
How can I get around this problem? I don't want to login as root each time I want to mount/unmount samba share.
from my fstab (one line, of course) //betsy/c /mnt/betsy smbfs noauto,defaults,users,credentials=/home/doug/betsy.credentials 0 0 note the credentials file. user and password are put there and are not world readable. from man smbmount credentials=<filename> specifies a file that contains a username and/or password. The format of the file is: username = <value> password = <value> This is preferred over having passwords in plaintext in a shared file, such as /etc/fstab. Be sure to protect any credentials file properly. hope that helps. Doug
On Wed, 2004-10-27 at 22:40 -0500, Doug B wrote:
On Wednesday 27 October 2004 11:59 am, Greg Macek wrote:
I'm trying to setup a line in /etc/fstab so I can access samba shares easily. However, it seems like I need to setuid root the smb* apps. However, 8.2 keeps complaining that libsmb based programs cannot be setuid root and then won't run.
How can I get around this problem? I don't want to login as root each time I want to mount/unmount samba share.
from my fstab (one line, of course)
//betsy/c /mnt/betsy smbfs noauto,defaults,users,credentials=/home/doug/betsy.credentials 0 0
note the credentials file. user and password are put there and are not world readable.
from man smbmount
credentials=<filename> specifies a file that contains a username and/or password.
The format of the file is:
username = <value> password = <value>
This is preferred over having passwords in plaintext in a shared file, such as /etc/fstab. Be sure to protect any credentials file properly.
hope that helps.
Doug
This is the one thing I haven't tried yet, but will do so when back in the office. The issue I ran into before was that non-root people could use this line. From the sounds of it, this credentials file will help me out here. *crosses fingers* Greg
On Wed, 2004-10-27 at 23:43 -0500, Greg Macek wrote:
On Wed, 2004-10-27 at 22:40 -0500, Doug B wrote:
On Wednesday 27 October 2004 11:59 am, Greg Macek wrote:
I'm trying to setup a line in /etc/fstab so I can access samba shares easily. However, it seems like I need to setuid root the smb* apps. However, 8.2 keeps complaining that libsmb based programs cannot be setuid root and then won't run.
How can I get around this problem? I don't want to login as root each time I want to mount/unmount samba share.
from my fstab (one line, of course)
//betsy/c /mnt/betsy smbfs noauto,defaults,users,credentials=/home/doug/betsy.credentials 0 0
note the credentials file. user and password are put there and are not world readable.
from man smbmount
credentials=<filename> specifies a file that contains a username and/or password.
The format of the file is:
username = <value> password = <value>
This is preferred over having passwords in plaintext in a shared file, such as /etc/fstab. Be sure to protect any credentials file properly.
hope that helps.
Doug
This is the one thing I haven't tried yet, but will do so when back in the office. The issue I ran into before was that non-root people could use this line. From the sounds of it, this credentials file will help me out here. *crosses fingers*
Greg
OK, so I've done this and I still get the following message when a non-root user does this: INFO: Debug class all level = 1 (pid 19928 from pid 19928) smbmnt must be installed suid root for direct user mounts (500,500) smbmnt failed: 1 What am I missing? Does the user need to be in a another group or something?
On 10:23 Thu 28 Oct , Greg Macek wrote:
On Wed, 2004-10-27 at 23:43 -0500, Greg Macek wrote:
On Wed, 2004-10-27 at 22:40 -0500, Doug B wrote:
On Wednesday 27 October 2004 11:59 am, Greg Macek wrote:
I'm trying to setup a line in /etc/fstab so I can access samba shares easily. However, it seems like I need to setuid root the smb* apps. However, 8.2 keeps complaining that libsmb based programs cannot be setuid root and then won't run.
How can I get around this problem? I don't want to login as root each time I want to mount/unmount samba share.
from my fstab (one line, of course)
//betsy/c /mnt/betsy smbfs noauto,defaults,users,credentials=/home/doug/betsy.credentials 0 0
note the credentials file. user and password are put there and are not world readable.
from man smbmount
credentials=<filename> specifies a file that contains a username and/or password.
The format of the file is:
username = <value> password = <value>
This is preferred over having passwords in plaintext in a shared file, such as /etc/fstab. Be sure to protect any credentials file properly.
hope that helps.
Doug
This is the one thing I haven't tried yet, but will do so when back in the office. The issue I ran into before was that non-root people could use this line. From the sounds of it, this credentials file will help me out here. *crosses fingers*
Greg
OK, so I've done this and I still get the following message when a non-root user does this:
INFO: Debug class all level = 1 (pid 19928 from pid 19928) smbmnt must be installed suid root for direct user mounts (500,500) smbmnt failed: 1
What am I missing? Does the user need to be in a another group or something?
-- Check the headers for your unsubscription address For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com Please read the FAQs: suse-linux-e-faq@suse.com
Perhaps you should use your file mgr (su) and set the uid bit for smbmount & smbumount. I think I ran into that, myself, and cured it that way. Otherwise, I mounted from a VT (as root). HTW... -- "Yogi" CH Namast� Yoga Studio
An interesting problem has come up. I need a reference preferabily offline for using existing ldap passwords and Samba together. The problem is to allow both Win32 and *nix users access via web interface. -- _______ _______ _______ __ / ____\ \ / / ____|_ _\ \ / / | | \ \ /\ / / (___ | | \ \ / / | | \ \/ \/ / \___ \ | | \ \/ / | |____ \ /\ / ____) |_| |_ \ / \_____| \/ \/ |_____/|_____| \/
participants (5)
-
C Hamel
-
Carl William Spitzer IV
-
Doug B
-
Greg Macek
-
L. Mark Stone