Why does cifs asks for su rights to write any data into it?

Posted by Denys S. on Super User See other posts from Super User or by Denys S.
Published on 2013-10-31T15:22:52Z Indexed on 2013/10/31 15:59 UTC
Read the original article Hit count: 289

Filed under:
|
|
|
|

I'm mounting a windows share as follows:

sudo mount -t cifs //192.168.178.49/public -o users,username=name,dom=domain,password=pword /mnt/nas

Then I'm trying to create a simple file with some basic text:

touch /mnt/nas/me.txt

And get an error, however, the file is created (contains 0B of data though):

touch: cannot touch ‘me.txt’: Permission denied

With sudo it works flawless. How can I allow my current user to write data to the share? Is there a mount option?

© Super User or respective owner

Related posts about linux

Related posts about permissions