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?
This is how the restrictions
Posts: 13
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?

Hmm
Posts: 5513
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
Posts: 13
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
Posts: 13
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?

More Info Needed
Posts: 5513
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? 
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
Posts: 13
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.
Ownership/Permissions on .smbpasswd
Posts: 5513
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...