Re: [opensuse] mount cifs share rw
On 23/02/10 10:04, lynn wrote:
On Tuesday 23 February 2010 07:43:28 you wrote:
On 22/02/10 20:06, lynn wrote:
Hi
I'm mounting a cifs share on my computer like this as root:
mount -t cifs //nas/part2 lynnnas -o rw,user=guest,password=""
How do I mount it so that a user can write to the lynnnas directory? At the moment only root can write to it which is a real pain.
I can read and write to it as a user if I use smb:/nas/part2 with dolphin but not if I use the mount command.
Thanks, L
Look at the owner and the protectionfields of lynnnas to whome this share is writable.
Hans
I have:
drwxr-xr-x 2 lynn users 4096 2010-02-22 19:52 lynnnas
The problem is that root owns everything in lynnnas
Than change the owner: mount -t cifs //nas/part2 lynnnas -o rw,uid=lynn,user=guest,password="" Succes, Hans -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Tuesday 23 February 2010 10:37:54 you wrote:
On 23/02/10 10:04, lynn wrote:
On Tuesday 23 February 2010 07:43:28 you wrote:
On 22/02/10 20:06, lynn wrote:
Hi
I'm mounting a cifs share on my computer like this as root:
mount -t cifs //nas/part2 lynnnas -o rw,user=guest,password=""
How do I mount it so that a user can write to the lynnnas directory? At the moment only root can write to it which is a real pain.
I can read and write to it as a user if I use smb:/nas/part2 with dolphin but not if I use the mount command.
Thanks, L
Look at the owner and the protectionfields of lynnnas to whome this share is writable.
Hans
I have:
drwxr-xr-x 2 lynn users 4096 2010-02-22 19:52 lynnnas
The problem is that root owns everything in lynnnas
Than change the owner: mount -t cifs //nas/part2 lynnnas -o rw,uid=lynn,user=guest,password=""
Succes, Hans
Ok. Thanks for your patience. I did this as root. mount -t cifs //nas/part2 lynnnas -o rw,uid=lynn,gid=users,user=guest,password="" now everything in lynnnas is owned by lynn:users and is universally rw. I can create a file lin lynnnas and I can save it ONCE only. If I try to edit it it says I do not have write access even though the file is universally rw and owned by lynn:users. I can only think that this is a bug. Thanks. L x -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On 23/02/10 12:38, lynn wrote:
On Tuesday 23 February 2010 10:37:54 you wrote:
On 23/02/10 10:04, lynn wrote:
On Tuesday 23 February 2010 07:43:28 you wrote:
On 22/02/10 20:06, lynn wrote:
Hi
I'm mounting a cifs share on my computer like this as root:
mount -t cifs //nas/part2 lynnnas -o rw,user=guest,password=""
How do I mount it so that a user can write to the lynnnas directory? At the moment only root can write to it which is a real pain.
I can read and write to it as a user if I use smb:/nas/part2 with dolphin but not if I use the mount command.
Thanks, L
Look at the owner and the protectionfields of lynnnas to whome this share is writable.
Hans
I have:
drwxr-xr-x 2 lynn users 4096 2010-02-22 19:52 lynnnas
The problem is that root owns everything in lynnnas
Than change the owner: mount -t cifs //nas/part2 lynnnas -o rw,uid=lynn,user=guest,password=""
Succes, Hans
Ok. Thanks for your patience. I did this as root.
mount -t cifs //nas/part2 lynnnas -o rw,uid=lynn,gid=users,user=guest,password=""
now everything in lynnnas is owned by lynn:users and is universally rw.
I can create a file lin lynnnas and I can save it ONCE only. If I try to edit it it says I do not have write access even though the file is universally rw and owned by lynn:users.
I can only think that this is a bug.
Thanks. L x
Oke, now everything on your desktop is as it should be, now look at the nas-server. On the nas you enter it as user guest what are the rights of user guest on the nas. Maybe you have to create specific account on the nas that has more rights and use that account. Because I don't have a nas I can't help further. Solong, Hans -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Tuesday 23 February 2010 14:54:29 Hans de Faber wrote:
On 23/02/10 12:38, lynn wrote:
On Tuesday 23 February 2010 10:37:54 you wrote:
On 23/02/10 10:04, lynn wrote:
On Tuesday 23 February 2010 07:43:28 you wrote:
On 22/02/10 20:06, lynn wrote:
Hi
I'm mounting a cifs share on my computer like this as root:
mount -t cifs //nas/part2 lynnnas -o rw,user=guest,password=""
How do I mount it so that a user can write to the lynnnas directory? At the moment only root can write to it which is a real pain.
I can read and write to it as a user if I use smb:/nas/part2 with dolphin but not if I use the mount command.
Thanks, L
Look at the owner and the protectionfields of lynnnas to whome this share is writable.
Hans
I have:
drwxr-xr-x 2 lynn users 4096 2010-02-22 19:52 lynnnas
The problem is that root owns everything in lynnnas
Than change the owner: mount -t cifs //nas/part2 lynnnas -o rw,uid=lynn,user=guest,password=""
Succes, Hans
Ok. Thanks for your patience. I did this as root.
mount -t cifs //nas/part2 lynnnas -o rw,uid=lynn,gid=users,user=guest,password=""
now everything in lynnnas is owned by lynn:users and is universally rw.
I can create a file lin lynnnas and I can save it ONCE only. If I try to edit it it says I do not have write access even though the file is universally rw and owned by lynn:users.
I can only think that this is a bug.
Thanks. L x
Oke, now everything on your desktop is as it should be, now look at the nas-server. On the nas you enter it as user guest what are the rights of user guest on the nas. Maybe you have to create specific account on the nas that has more rights and use that account. Because I don't have a nas I can't help further.
Solong, Hans
Thanks for trying Hans. If anyone has any clues as to why i can't write to the NAS, here is smb.conf on the NAS: cat smb.conf [global] load printers = no disable spoolss = yes syslog = 1 security = share dns proxy = no debug level = 0 netbios name = NAS workgroup = MSHOME server string = Samba Server [rec] guest ok = yes comment = Rec Partition path = /usr/local/etc/hdd/dvdvr writable = no read only = yes [part1] guest ok = yes comment =HDD Partition 1 path = /usr/local/etc/hdd/volumes/HDD1 writable = yes read only = no [part2] guest ok = yes comment =HDD Partition 2 path = /usr/local/etc/hdd/volumes/HDD2 writable = yes read only = no Anyone able to help I'd be most grateful. Thanks L. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Am Dienstag, 23. Februar 2010 schrieb lynn:
[...] security = share [...]
Okay, forget my previous posting in this thread! I assumed that the user mode, AFAIK the default, was used. Gruß Jan -- If you resolve to give up smoking, drinking and loving, you don't actually live longer, it just seems that way. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Am Dienstag, 23. Februar 2010 schrieb lynn:
[...] Ok. Thanks for your patience. I did this as root.
mount -t cifs //nas/part2 lynnnas -o rw,uid=lynn,gid=users,user=guest,password=""
You are accessing the share as a guest user. Are you sure that this is what you really want? As Hans said, you should create a lynn user on the NAS and use this user to mount the share. If the NAS is a Samba server, you might want to give this user the same uid as your local user (see man "mount.cifs").
now everything in lynnnas is owned by lynn:users and is universally rw.
Yes, but only on the local files in the local lynnnas directory. However, the permissions on the NAS do still matter: in effect, the more restrictive of both will apply!
I can create a file lin lynnnas and I can save it ONCE only. If I try to edit it it says I do not have write access even though the file is universally rw and owned by lynn:users.
See above: Having the right on the local system is necessary but not sufficient. Using the mount options "rw" and "uid", you have no chance to see the real permissions. So, mount the share with "mount -t cifs //nas/part2 lynnnas -o user=guest" and have a look at the permissions of the newly created file. Is it owned by guest? And does guest have write permissions? The NAS might set the permissions of newly created files---think of it as a server umask.
I can only think that this is a bug.
IMHO it is a layer 8 issue. ;) Gruß Jan -- He who rows the boat generally doesn't have time to rock it. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (3)
-
Hans de Faber
-
Jan Ritzerfeld
-
lynn