Thursday, May 2, 2024
 Popular · Latest · Hot · Upcoming
13
rated 0 times [  13] [ 0]  / answers: 1 / hits: 76029  / 3 Years ago, mon, october 4, 2021, 1:09:45

I have mounted a windows share, But only root have write permissions..



I need to change that to my user so my programs can download and save stuff to my windows share.



commands I've have used to mount:



sudo mkdir /mnt/ussenterprise
sudo gedit /etc/fstab
//servername/sharename /mnt/ussenterprise cifs username=msusername,password=mspassword,iocharset=utf8,sec=ntlm 0 0
sudo mount -a


yes I have read access to everything in the mounted share, but only root gave write..



I've tried: sudo chown user:user /mnt/ussenterprise, and sudo chown user /mnt/ussenterprise



I get; permissions denied



what to do?


More From » mount

 Answers
2

I changed my /etc/fstab to:



//server/share  /media/share  cifs  username=msusername,password=mspassword,uid=1000,gid=1000  0  0

[#27889] Monday, October 4, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
leddre

Total Points: 180
Total Questions: 113
Total Answers: 108

Location: France
Member since Thu, Oct 27, 2022
2 Years ago
;