Samba Share
Paul Thompson
ubantu001 at gmail.com
Thu Sep 20 05:59:55 UTC 2007
This will likely do it for you, Just subsistut your file names:
Mount for a session:-
Creat a mount point: sudo mkdir /media/YourMountPiontName
Make smb mount writeable by local users: sudo chmod u+s /usr/bin/smbumount
Mount: sudo smbmount //svr001/SMBShareName /media/YourMountPiontName
-o username=YourUserName,password=YourPassword
or
sudo mount -t smbfs //svr001/SMBShareName /media/YourMountPiontName -o
username=YourUserName,passwordd=YourPassword,uid=YourSmbaID,gid=YourSambaGroup
To Create a Permanant Mount:-
Creat a hidden password file in your home directory called .smbpasswd:
echo username=YourUserName > .smbpasswd
echo password=YourPassword >> .smbpasswd
chmod 600 .smbpasswd
Edit fstab & add the mount instruction:
gksudo gedit /etc/fstab
Add this to the bottom:
# Mount Samba shares
//svr001/SMBShareName /media/YourMountPiontName smbfs
credentials=/home/YourHomeDir/.smbpasswd,uid=pjt,gid=pjt 0 0
Regards,
Paul Thompson
On 9/20/07, OOzy Pal <oozypal at gmail.com> wrote:
> I use this to mount a windows share
> sudo mount -t smbfs -o username=habwin,fmask=777,dmask=777
> //MICROJUNK/Laptop microjunk
>
> the share is mount with root.root. How can I can I mount it as me.me
> ie oozy.oozy
>
> --
> OOzy
> Ubuntu-Feisty
>
> --
> ubuntu-users mailing list
> ubuntu-users at lists.ubuntu.com
> Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
>
More information about the ubuntu-users
mailing list