I have a number of Samba shares on my fedora 8 machine that I use from the Windows XP guest that runs on the same machine. They are working OK in the sense that they are accessible but I'm trying to use the Samba "force user = userx" option so that files in certain shares are created by specific users.
I.e. at the end of my smb.conf file I have:-
[Scans] comment = Digikam scans for chrisx path = /home/chrisx/pictures/Scans writeable = yes ; browseable = yes force user = chrisx
[xpIsbd] comment = ISBD on XP path = /home/isbd/xpIsbd writeable = yes ; browseable = yes force user = isbd
However when I access the above shares from my XP guest (on which I am user chris) I still act as user chris when creating files etc. I want to be chrisx and isbd respectively.
I thought I had it working once but now it seems to have stopped again, has anybody any idea what may be wrong? Both chrisx and isbd are real users on the fedora 8 box and have been added to the smbpasswd file.
On Mon, Mar 24, 2008 at 11:42:07AM +0000, Chris G wrote:
I have a number of Samba shares on my fedora 8 machine that I use from the Windows XP guest that runs on the same machine. They are working OK in the sense that they are accessible but I'm trying to use the Samba "force user = userx" option so that files in certain shares are created by specific users.
I.e. at the end of my smb.conf file I have:-
[Scans] comment = Digikam scans for chrisx path = /home/chrisx/pictures/Scans writeable = yes ; browseable = yes force user = chrisx [xpIsbd] comment = ISBD on XP path = /home/isbd/xpIsbd writeable = yes ; browseable = yes force user = isbd
However when I access the above shares from my XP guest (on which I am user chris) I still act as user chris when creating files etc. I want to be chrisx and isbd respectively.
I thought I had it working once but now it seems to have stopped again, has anybody any idea what may be wrong? Both chrisx and isbd are real users on the fedora 8 box and have been added to the smbpasswd file.
I have just realised what I was doing wrong!
I was accessing the shares as \home\chrisx/pictures/Scans from my XP machine and that (of course!) was accessing them via the default [homes] share in smb.conf.
If I access the shares as \home\xpIsbd and \home\Scans then everything works as expected.
Grrrrrr!!! It's taken me hours to realise this!