Discussion:
Mount an smb share via fstab
Robert
2006-06-28 04:19:50 UTC
Permalink
I need some insight into mounting a samba share via fstab.

I added the following line to my fstab file:

//slugger02/public /mnt/slugger02 smbfs rw 0 0

I rebooted my Linux system and can access the share as read only. I
cannot copy anything into or onto my samba file server via the above
configuration.

The share is setup as a guest ownership and is write enabled in the
smb.conf file in slugger02.

Also, how do i link to the /mnt/slugger02 directory so when I open
Konqueror or do a down load it is in my ~/download/ folder?

Thanks,
Bob C
Bob K Mertz
2006-06-28 07:26:20 UTC
Permalink
Try adding .username=user,password=xxx to the fstab line. Basically,
what is happening is you are mounting a smb share as root from fstab so
your user accounts dont have access to that directory. There are also
other options that can be specified as well but if your just looking for
a single user access, adding that will do fine.
Post by Robert
I need some insight into mounting a samba share via fstab.
//slugger02/public /mnt/slugger02 smbfs rw 0 0
I rebooted my Linux system and can access the share as read only. I
cannot copy anything into or onto my samba file server via the above
configuration.
The share is setup as a guest ownership and is write enabled in the
smb.conf file in slugger02.
Also, how do i link to the /mnt/slugger02 directory so when I open
Konqueror or do a down load it is in my ~/download/ folder?
Thanks,
Bob C
_______________________________________________
CPLUG mailing list
Archives: http://dir.gmane.org/gmane.org.user-groups.linux.cplug.general
Bob K Mertz
2006-06-28 07:38:13 UTC
Permalink
This link may be helpful:

http://www.linuxplanet.com/linuxplanet/tutorials/2047/3/
Post by Robert
I need some insight into mounting a samba share via fstab.
//slugger02/public /mnt/slugger02 smbfs rw 0 0
I rebooted my Linux system and can access the share as read only. I
cannot copy anything into or onto my samba file server via the above
configuration.
The share is setup as a guest ownership and is write enabled in the
smb.conf file in slugger02.
Also, how do i link to the /mnt/slugger02 directory so when I open
Konqueror or do a down load it is in my ~/download/ folder?
Thanks,
Bob C
_______________________________________________
CPLUG mailing list
Archives: http://dir.gmane.org/gmane.org.user-groups.linux.cplug.general
Matthew Hurne
2006-06-28 13:27:31 UTC
Permalink
To link ~/download to /mnt/slugger02:

$ ln -s /mnt/slugger02 ~/download

That creates a symbolic link!

Also, you may want to consider setting the uid, gid, and umask on your
smb mount, as well as storing the username and password in a protected
credentials file. Something like this:

//slugger02/public /mnt/slugger02 smbfs
rw,credentials=/home/fleet/.credentials,uid=fleet,gid=fleet,umask=0000
0 0

Google this stuff and you should be able to find lots of help.

Matt Hurne
Consultant
Versatile Systems, Inc.
Post by Bob K Mertz
http://www.linuxplanet.com/linuxplanet/tutorials/2047/3/
Post by Robert
I need some insight into mounting a samba share via fstab.
//slugger02/public /mnt/slugger02 smbfs rw 0 0
I rebooted my Linux system and can access the share as read only. I
cannot copy anything into or onto my samba file server via the above
configuration.
The share is setup as a guest ownership and is write enabled in the
smb.conf file in slugger02.
Also, how do i link to the /mnt/slugger02 directory so when I open
Konqueror or do a down load it is in my ~/download/ folder?
Thanks,
Bob C
_______________________________________________
CPLUG mailing list
Archives: http://dir.gmane.org/gmane.org.user-groups.linux.cplug.general
_______________________________________________
CPLUG mailing list
Archives: http://dir.gmane.org/gmane.org.user-groups.linux.cplug.general
Loading...