Pun intended in topic title. I've been using samba for some time, but now I've run into a situation where I'm confused as how to properly mount using the cifs protocol.
I use this mount command:
- Code: Select all
sudo mount -t cifs -o username=someuser,gid=1001,rw,noperm //[IPADDRESS]/share /mnt/share
1001 is a newly created group on the computer hosting the folder called "stuff".
HOWEVER! ... When I "touch test" in the folder and "ls -la" on the hosting computer to see what user and group the file test belongs to, it's not a member of group, no no no. It's a member of someuser and the owner is someuser.
I want to mount the target folder in a way where, when I create files, the file will belong to someuser:stuff !
Can someone please please help me with this? I've out used google, nothing helpful came up -_- I've even forgotten what I allready tried. As far as I can remember, I've never been able to do this in a proper way.