View Single Post
jukey's Avatar
Posts: 246 | Thanked: 204 times | Joined on Jun 2007 @ Potsdam (Germany)
#188
Originally Posted by slewis1972 View Post
When I mount a drive with:
mount -tcifs //xx.xx.xx.xx/media /media/NAS -ouser=xxxx,pass=xxxxx,ip=xxxxxxxxxxxx

and then a rsync, it works but i get chown errors not being able to access files. Do i need to mount the drive with specific dmask setting?

Scott
I solved these problems using the uid and gid option. The 'user' uid and gid is 29999. gid and uid are included between pass=xxxx, and ip=xxxxxxxxxxxxxx.

Update. The correct line for your example is:
Code:
mount -tcifs //xx.xx.xx.xx/media /media/NAS -ouser=xxxx,pass=xxxxx,uid=29999,gid=29999,ip=xxxxxxxxxxxx
HTH, jukey
__________________
-> Join the SailfishOS Meetup Berlin - every first Monday a month <-

Me on twitter

Last edited by jukey; 2010-02-25 at 14:55.
 

The Following 2 Users Say Thank You to jukey For This Useful Post: