Nick,
        Thanks for the reply.  I checked; smbd is indeed running as root (according
to ps -ef).  If I am reading the man page for mount and smbmount correctly,
the gid, fmask, dmask and iocharset options are preferences only (mostly for
security I think), and likely do not have an impact on this particular
problem.  Therefore, I have tried the line again in /etc/fstab

//BALDER/PUB    /mnt/balder             smbfs           
credentials=/etc/samba/smb_cred 0 0

        This particular line did not work.  I also tried
'auto,credentials=/etc/samba/smb_cred' (without the '' marks), to no avail.
As a last resort, I tried changing the permissions on my credentials file to
0644 (instead of 0600); this did not help either.  Each time, the 'mount
/mnt/balder' command would hang until I killed it with a CTRL-C.

        Interestingly enough, if I delete the password line of my credentials file,
'mount /mnt/balder' works; however, it prompts me for a password (which,
though expected in this test case, is less than optimal for boot-up time).

        Someone else suggested that I call smbmount directly (rather than through
mount) via the rc.local file like this:

smbmount //BALDER/PUB /mnt/balder -o credentials=<credentials file>

        This works fine with the same credentials file that hangs mount....

Cheers,
Jason

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Nick Kishfy
Sent: Monday, September 15, 2003 8:31 AM
To: [EMAIL PROTECTED]
Subject: RE: RH9/samba questions


Jason-

It looks like you configuration is correct, I have a very similar
setup running over here. You may want to take security out of the
equation I would change the file to something like 644 because if
Samba isn't running as root then it's not going to be able to read the
file. You can check the user it is running under with "ps -ef | grep
smb". Your looking for smbd. It does run as root by default so my
troubleshooting may not be that helpful to you. Shooting from the hip
here...

Oh, here is the copy of the line that I have in my fstab, mine mounts
at boot. All one line.

//machine/share        /mnt/share             smbfs
auto,gid=users,fmask=0664,dmask=0775,iocharset=iso8859-15,credentials=
/etc/sharepasswd 0 0

-Nick


-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]
https://www.redhat.com/mailman/listinfo/redhat-list

Reply via email to