[CS-FSLUG] mounting smb share as user

Tim Young Tim.Young at LightSys.org
Thu Nov 3 14:16:44 CST 2005


You would have an entry in fstab that would look something like:
//servername/sharename /mountdir smbfs 
username=USERNAME,password=PASSWORD 0 0

Otherwise you can add the information to the smbmount command:

smbmount //servername/sharename /mountdir -o 
username=USERNAME,password=PASSWORD

The manpage for smbmount states that passwords set in this way will fail 
if the password contains certain characters, like commas and 
semicolins.  Use the password variable if your password contains one of 
these.

    - Tim

Ritchie, Josiah S. wrote:

>I think you want a mount option in /etc/fstab, user.
>
>You can have multiple options delimited by a ,. For example:
>/dev/hda1 /boot ext2 noauto,rw,user 0 0
>
>JSR/
>
>-----Original Message-----
>From: Christiansource-bounces at ofb.biz
>[mailto:Christiansource-bounces at ofb.biz] On Behalf Of David
>Sent: Thursday, November 03, 2005 2:42 PM
>To: A Christian virtual Free Software and Linux Users Group.
>Subject: [CS-FSLUG] mounting smb share as user
>
>Can anyone tell me how I can mount an smb share as user instead of root?
>
>So far I have set up my smb shares to auto mount on boot, but they mount
>as 
>root and I as a user do not have write access which I would like to
>have.
>
>Anybody have any ideas?
>
>Also, Josiah, thanks for the help on the last question, I found the file
>I was 
>looking for in /etc/rc.d/rc .local
>
>_______________________________________________
>ChristianSource FSLUG mailing list
>Christiansource at ofb.biz
>http://cs.uninetsolutions.com
>
>_______________________________________________
>ChristianSource FSLUG mailing list
>Christiansource at ofb.biz
>http://cs.uninetsolutions.com
>
>
>
>  
>




More information about the Christiansource mailing list