Skip navigation.
Home
Now Shipping Version 7.0

Samba Mounts in fstab


Posts: 13

I am trying to get a smb mount to mount when the computer starts up. I have done this, but I cannot give myself write access, all I get is read. I have tried the following:

//server/share /mnt/network/ smbfs credentials=/home/snelson/.smbpasswd,umask=0000 0 0

//server/share /mnt/network/ smbfs credentials=/home/snelson/.smbpasswd,uid=username 0 0

//server/share /mnt/network/ smbfs credentials=/home/snelson/.smbpasswd,gid=users 0 0

//server/share /mnt/network/ smbfs credentials=/home/snelson/.smbpasswd,uid=username,umask=0000 0 0

//server/share /mnt/network/ smbfs credentials=/home/snelson/.smbpasswd,gid=users,umask=0000 0 0

Any suggestions?

Jon Du Quesne's picture

Ownership/Permissions on .smbpasswd

belkira, who is the owner, and what are the permissions on the /home/slelson/.smbpasswd file? My understanding of this is that read-write can only be established if the mountpoint is established by ROOT. So you should consider moving /home/snelson/.smbpasswd to /root/.smbpasswd, making owner and group "root" and permissions rw-------.

Jon

In /dev/null, no one can hear you type...

This is how the restrictions

This is how the restrictions originally looked on /mnt/network when mounted:

drwxr-xr-x 1 root root

This was the fstab entry:

//server/share /mnt/network/ smbfs credentials=/home/snelson/.smb
passwd,umask=0000 0 0

This gives me read access but no write.

I have moved the .smbpasswd file to /root and the permissions look like this:

-rw------- 1 root root 36 Apr 4 09:53 .smbpasswd

The restrictions on /mnt/network are still the same:

drwxr-xr-x 1 root root

And this is my current fstab entry:

//server/share /mnt/network/ smbfs credentials=/root/.smbpasswd,umask=0000 0 0

Still only read access.
Any other ideas? or did I misunderstand your previous post?

Jon Du Quesne's picture

Hmm

No, your fstab entry looks ok. However, you might try removing the umask=0000 entry.

Jon

In /dev/null, no one can hear you type...

Thanks for your help.I

Thanks for your help.

I finally got it working with full r/w access with this line in my fstab:

//server/share /mnt/network/ smbfs credentials=/root/.smbpasswd,uid=snelson 0 0

One last problem, when I run

One last problem,

when I run smb:/ I only get about 2300 of my over 4000 computers showing up. Any idea how to fix that?

Jon Du Quesne's picture

More Info Needed

Belkira, we're going to need a lot more information before we can tackle that problem. I assume that all these computers are not in your house? Smiling

My first guess would be to check the IP addresses, gateways, and subnet masks of these computers. They should all be part of the same subnet, or have gateway/routing to get back and forth.

Jon

In /dev/null, no one can hear you type...

Thats correct. I did find if

Thats correct. I did find if I turned the timeout limit up I would get closer to the correct number of hosts, but still not all of them.

I am in a university enviroment so a whole slew of hosts are out their. I am only interested in the ones for my group, and they are all on the same subnet 255.255.252.0

When I open up smb:/ I get about 13 "Servers" I click on the server for my group, where the 4000+ hosts are, but only about 2300 show up.

The only problem is I dont remember where I found the timeout limits, I was just cruising through options one day and found them.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.