[Eug-lug] Mount smbfs

Garl Grigsby badd_karma at comcast.net
Wed Apr 18 18:20:17 PDT 2007


Bob Crandell wrote:
> Ok.  I'm loosing my mind.
>
> I'm trying to mount a Windows share in my home directory with this:
> /bin/mount -t smbfs -o
> username=username,password=password //horsey/username /home/username/Horsey
>
> It only works as root and the directory is owned my root.  I want to own
> it.
>
> What does the equivalent line look like in /etc/fstab?
>
> Thanks O Great Ones.
> BobC
> _______________________________________________
> EUGLUG mailing list
> euglug at euglug.org
> http://www.euglug.org/mailman/listinfo/euglug
>
>   
Bob,
    Try adding this:
    mount -t smbfs -o 
username=username,password=password,uid=user,gid=group //horsey/username 
/home/username/Horsey

In fstab this would look like this:
    //server/share /mount smbfs 
username=username,password=password,uid=user,gid=group 0 0

There are options if you don't want to put your username/password in 
fstab, but I don't recall what they are right now.

Garl


More information about the EUGLUG mailing list