Discussion:
[Samba] Help with samba
(too old to reply)
Sebastian Sola
2005-01-14 16:20:21 UTC
Permalink
Hi,

I have an small network with SUSE 9.1 and trying to
use samba. I was reading a lot of papers about samba,
but i cannot do something i need.

In my computer i have a directory named cotiza owned
by user4(me) with the group users and mode 765.

M users list there're user1, user2, user3 and user4
all of them with users group.

In smb.conf have:
[cotiza]
comment = Directorio de Cotizaciones
path = /home/cotiza/
valid users = user1,user2,user3
read list = user1
write list = user2,user3
create mask = 0765
create directory mask = 0765
create directory mode = 0765

In users 1, 2 and 3 smbfstab have:
//xxx.xxx.x.x/cotiza /home/user(x)cotiza
username=user(X),password=xxxx,fmask=765,dmask=765

All of that is not working. I need that users2 and 3
can create or modify any of the files inside and user1
just read it. Also, I need users 2 and 3 can make
directorys with the same mode and that is not working
too.

Can somebody help me??

Thanks

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/listinfo/samba
Christoph Stoettner
2005-01-14 17:10:15 UTC
Permalink
Hi,

i think you have a problem with the linux file rights:

You have 765 so you get drwxrw-r-x for your directory /home/cotiza.

Your users need the right x for changing in a directory. So all users in
your group users aren't allowed to get in!
Post by Sebastian Sola
Hi,
In my computer i have a directory named cotiza owned
by user4(me) with the group users and mode 765.
You will need 775!
Post by Sebastian Sola
M users list there're user1, user2, user3 and user4
all of them with users group.
OK.
Post by Sebastian Sola
[cotiza]
comment = Directorio de Cotizaciones
path = /home/cotiza/
valid users = user1,user2,user3
read list = user1
write list = user2,user3
create mask = 0765
create directory mask = 0765
create directory mode = 0765
Isn't user4 allowed to write there with a smb/cifs-client?
Post by Sebastian Sola
//xxx.xxx.x.x/cotiza /home/user(x)cotiza
username=user(X),password=xxxx,fmask=765,dmask=765
I think you can leave f/dmask away, but I'm not sure.
Post by Sebastian Sola
All of that is not working. I need that users2 and 3
can create or modify any of the files inside and user1
just read it. Also, I need users 2 and 3 can make
directorys with the same mode and that is not working
too.
You will have this points, when you change the rights to 775. Problem
are users in group users, which can access your computer (where samba is
running), because they can write too!

A second method would be acl and perhaps you can make some easier
configuration with sticky bits -> change to 2775, then every file
beyond /home/cotiza will get equal groups.
Post by Sebastian Sola
Can somebody help me??
Hope so!
Bye
--
Christoph Stoettner <***@stoeps.de>
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/listinfo/samba
Sebastian Sola
2005-01-14 19:50:15 UTC
Permalink
Ok,

I did change all to probe just with one user. The same
/home/cotiza directory, with 775 mode

In user1 computer's: mount -t smbfs -o
username=user4(the owner of
/home/cotiza),password=xxxxx,fmask=775,dmask=775

user1 can mount /home/cotiza but, if we try to make a
directory inside, the mode for the new directory are
o+rwx g+rx a+rx, so they cannot save anything inside.
Post by Christoph Stoettner
Hi,
i think you have a problem with the linux file
You have 765 so you get drwxrw-r-x for your
directory /home/cotiza.
Your users need the right x for changing in a
directory. So all users in
your group users aren't allowed to get in!
Am Freitag, den 14.01.2005, 08:12 -0800 schrieb
Post by Sebastian Sola
Hi,
In my computer i have a directory named cotiza
owned
Post by Sebastian Sola
by user4(me) with the group users and mode 765.
You will need 775!
Post by Sebastian Sola
M users list there're user1, user2, user3 and
user4
Post by Sebastian Sola
all of them with users group.
OK.
Post by Sebastian Sola
[cotiza]
comment = Directorio de Cotizaciones
path = /home/cotiza/
valid users = user1,user2,user3
read list = user1
write list = user2,user3
create mask = 0765
create directory mask = 0765
create directory mode = 0765
Isn't user4 allowed to write there with a
smb/cifs-client?
Post by Sebastian Sola
//xxx.xxx.x.x/cotiza /home/user(x)cotiza
username=user(X),password=xxxx,fmask=765,dmask=765
I think you can leave f/dmask away, but I'm not
sure.
Post by Sebastian Sola
All of that is not working. I need that users2 and
3
Post by Sebastian Sola
can create or modify any of the files inside and
user1
Post by Sebastian Sola
just read it. Also, I need users 2 and 3 can make
directorys with the same mode and that is not
working
Post by Sebastian Sola
too.
You will have this points, when you change the
rights to 775. Problem
are users in group users, which can access your
computer (where samba is
running), because they can write too!
A second method would be acl and perhaps you can
make some easier
configuration with sticky bits -> change to 2775,
then every file
beyond /home/cotiza will get equal groups.
Post by Sebastian Sola
Can somebody help me??
Hope so!
Bye
--
--
To unsubscribe from this list go to the following
URL and read the
https://lists.samba.org/mailman/listinfo/samba
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/listinfo/samba
Christoph Stoettner
2005-01-14 20:40:12 UTC
Permalink
Post by Sebastian Sola
Ok,
I did change all to probe just with one user. The same
/home/cotiza directory, with 775 mode
In user1 computer's: mount -t smbfs -o
username=user4(the owner of
/home/cotiza),password=xxxxx,fmask=775,dmask=775
I think you can leave f/dmask away. These settings should come from
samba.
Post by Sebastian Sola
user1 can mount /home/cotiza but, if we try to make a
directory inside, the mode for the new directory are
o+rwx g+rx a+rx, so they cannot save anything inside.
Did you change your smb.conf?
Post by Sebastian Sola
Post by Sebastian Sola
create mask = 0765
Post by Sebastian Sola
create directory mask = 0765
create directory mode = 0765
Should be
create mask = 0660 (so only user4 and users can read and write files
create directory mask/mode = 0775 or 0770

If this won't work -> have a look at the users umask!

Bye
Chris
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/listinfo/samba
Sebastian Sola
2005-01-14 20:50:09 UTC
Permalink
Ok, I did it

I founded a "force directory mask" option reading some
new paper in the web. With that, it seems to be
working.
Thanks for your help Chirstoph.

Sebastian
Am Freitag, den 14.01.2005, 11:43 -0800 schrieb
Post by Sebastian Sola
Ok,
I did change all to probe just with one user. The
same
Post by Sebastian Sola
/home/cotiza directory, with 775 mode
In user1 computer's: mount -t smbfs -o
username=user4(the owner of
/home/cotiza),password=xxxxx,fmask=775,dmask=775
I think you can leave f/dmask away. These settings
should come from
samba.
Post by Sebastian Sola
user1 can mount /home/cotiza but, if we try to
make a
Post by Sebastian Sola
directory inside, the mode for the new directory
are
Post by Sebastian Sola
o+rwx g+rx a+rx, so they cannot save anything
inside.
Did you change your smb.conf?
Post by Sebastian Sola
Post by Sebastian Sola
create mask = 0765
Post by Sebastian Sola
create directory mask = 0765
create directory mode = 0765
Should be
create mask = 0660 (so only user4 and users can read
and write files
create directory mask/mode = 0775 or 0770
If this won't work -> have a look at the users
umask!
Bye
Chris
--
To unsubscribe from this list go to the following
URL and read the
https://lists.samba.org/mailman/listinfo/samba
__________________________________
Do you Yahoo!?
Yahoo! Mail - Helps protect you from nasty viruses.
http://promotions.yahoo.com/new_mail
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/listinfo/samba
Sebastian Sola
2005-01-14 19:10:22 UTC
Permalink
I have 2 windows computers too.
These are all just linux systems ?
Why not use NFS instead?
----- Original Message -----
Sent: Friday, January 14, 2005 11:12 AM
Subject: [Samba] Help with samba
Post by Sebastian Sola
Hi,
I have an small network with SUSE 9.1 and trying
to
Post by Sebastian Sola
use samba. I was reading a lot of papers about
samba,
Post by Sebastian Sola
but i cannot do something i need.
In my computer i have a directory named cotiza
owned
Post by Sebastian Sola
by user4(me) with the group users and mode 765.
M users list there're user1, user2, user3 and
user4
Post by Sebastian Sola
all of them with users group.
[cotiza]
comment = Directorio de Cotizaciones
path = /home/cotiza/
valid users = user1,user2,user3
read list = user1
write list = user2,user3
create mask = 0765
create directory mask = 0765
create directory mode = 0765
//xxx.xxx.x.x/cotiza /home/user(x)cotiza
username=user(X),password=xxxx,fmask=765,dmask=765
All of that is not working. I need that users2 and
3
Post by Sebastian Sola
can create or modify any of the files inside and
user1
Post by Sebastian Sola
just read it. Also, I need users 2 and 3 can make
directorys with the same mode and that is not
working
Post by Sebastian Sola
too.
Can somebody help me??
Thanks
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam
protection around
Post by Sebastian Sola
http://mail.yahoo.com
--
To unsubscribe from this list go to the following
URL and read the
https://lists.samba.org/mailman/listinfo/samba
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/listinfo/samba
Continue reading on narkive:
Loading...