[Samba] share rights
Marian Mlcoch, Ing
mm at tsmp.sk
Tue Nov 26 07:33:01 GMT 2002
Hi Mats
you good understand that when login as mats to windows then samba accept you
as mats and aply mats restrictions on linux filesystem. Settings in smbusers
is not necessary when names in win and linux is identical .
If you acces share home that owner is mats then mod of files and dirs is rw
for mats.
But share documents is i mean diferent directory and have yuor owner and
group not mats...
When yuo can use documents by samba users then have two way to do this
1. if you need enable write to all registered samba users then simply create
special linux user usamba
then type chown usamba -R /.../document and to smbconf document share
add force user = usamba
but afther this you are not info about creator or modif user
second way is not use force user but force chmod to files
2. if yuo need that write by owner creator but read and create all then must
define linux group gsamba and add users to it
then type chgrp gsamba -R /.../document and chmod 775 /.../document
and exist more another combinations ...
Bye.
----- Original Message -----
From: "Mats Gustafsson" <mats.gustafsson at abc.se>
To: <samba at lists.samba.org>
Sent: Monday, November 25, 2002 5:58 PM
Subject: [Samba] share rights
> I have successfully, by now, installed a samba server. I can log on from
win98 and 95
> computers. I can see the shares and use some of it.
>
> There are a couple of shares
>
> [Home]
>
> [Document]
>
> I can browse the share and a user, "Mats", can read and write copy and so
on in
> /home/Mats, so obviously the server recognizes the user as the Linux user
with the
> same name. (in smbusers there is a Mats = Mats)
>
> When trying to give rights to the document share things are worse:
>
> I have tried
>
> create mode = 640 (even 777)
> directory mode = 755 and so on, but whatever I use, the user can not
access the share,
> just browse and see the files that root has laid there as an example.
>
> Only if the file is manually manipulated by root with
>
> chmod test.txt 666 it's possible to open and write through samba.
>
> Also when looking at log.smbd I can see:
>
> "couldn't connect to service mats"
>
> What does this mean and could there be a connection between the two
problems. What
> is to be done?
>
>
> Mats Gustafsson
>
> mats.gustafsson at abc.se
>
>
>
> --
> To unsubscribe from this list go to the following URL and read the
> instructions: http://lists.samba.org/mailman/listinfo/samba
More information about the samba
mailing list