• Home
  • Help
  • Search
  • Login
  • Register
  Show Posts
Pages: [1]
1  Linux Stuff / Kernel / Re: ACLs in kernel 2.6.22.18 ? on: September 28, 2009, 05:02:35 PM
You were right : applying an umask of 007 make all files and directoyies newly created being with rights rwxrwx---

Thanks all !
2  Linux Stuff / Kernel / Re: ACLs in kernel 2.6.22.18 ? on: September 24, 2009, 05:20:49 PM
I am not so sure to perfectly understand (english is not my native language). Do you mean that we can't control the permissions assigned by newly created files ?
So there are no solutions ?? THere must be one nice solution, forcing that all created files in a directory being 775 permissions !?
3  Linux Stuff / Kernel / Re: ACLs in kernel 2.6.22.18 ? on: September 24, 2009, 11:39:32 AM
I did a chmod -R 775 public as root

But, when creating a file in this directory, the file has rights 755, so read only for group, so another user can't write to it.

What is still missing ?
Thank you _very_ much for you help
4  Linux Stuff / Kernel / Re: ACLs in kernel 2.6.22.18 ? on: September 23, 2009, 08:12:34 AM
Thanks all !
The problem is : after setting gid bit, like this
drwxrwsr-x 4 root      nasuser    4096 2009-09-20 21:33 public

Notice the 's' bit ;-) and my users belonging to nasusuer group

etienne@debian:/home$ groups
etienne nasuser

etienne@debian:/home/public$ pwd
/home/public

If i create a file

etienne@debian:/home/public$ echo 1 > test

Then try to modify it with another user belonging to nasusuer group

daniel@debian:/home/public$ groups
daniel nasuser
daniel@debian:/home/public$ echo 2 >> test
bash: test: Permission denied

daniel@debian:/home/public$ ls -l test
-rw-r--r-- 1 etienne nasuser 2 2009-09-23 17:11 test

It _does not_ work ! Why ? I must have forgotten something ?!
5  Linux Stuff / Kernel / Re: ACLs in kernel 2.6.22.18 ? on: September 22, 2009, 06:35:43 AM
I thought ext3 was supporting it. Do you know a solution on ext3 ?
6  Linux Stuff / Kernel / Re: ACLs in kernel 2.6.22.18 ? on: September 21, 2009, 04:20:37 PM
Here is the line dedicated to this partition :

/dev/sda4 /home ext3 defaults,umask=002 0 0

mount -a
mount: wrong fs type, bad option, bad superblock on /dev/sda4,
       missing codepage or helper program, or other error
       In some cases useful info is found in syslog - try
       dmesg | tail  or so

If I remove ,umask=002, mounting works... What is wrong with umask=002 ?? It can't be on a /home mount ?
7  Linux Stuff / Kernel / Re: ACLs in kernel 2.6.22.18 ? on: September 21, 2009, 05:14:54 AM
I am using the original kernel, but my partition I want to share is in ext3, on an external HDD. I tried specifying setgid bit to the directory, like chmod g+s <group> but it does not work (maybe a umask problem ?). Creating a file with a user make this file not being writable for others...

I mounted the partition in fstab like this : /dev/sda4 /home defaults 0 0
Making a cron job to set permissions periodically is _ugly_ solution ;-)

Does anyone have some ideas ?
8  Linux Stuff / Kernel / Re: ACLs in kernel 2.6.22.18 ? on: September 20, 2009, 12:21:12 PM
It won't work ! I may create a file through ssh in vim, or copy a video file, anything, any time !
The proper solution I found is acls. I mounter the partition with acls enabled, and no errors appeared, but setting the acls to the directory I want to be public is not working (setfactl)
This might be due to no ACL support in the base kernel. But I don't know how to check this...
9  Linux Stuff / Kernel / Re: ACLs in kernel 2.6.22.18 ? on: September 20, 2009, 11:45:11 AM
No, acls are not working with 777 rights, and with the 777 it won't work. Imagine user user1 create file test
This file will be owned by user1
user2 won't have rigths to modify file test ;-)
10  Linux Stuff / Kernel / ACLs in kernel 2.6.22.18 ? on: September 20, 2009, 11:24:04 AM
I would like to create a shared directory where users will have access to all files in read and write mode, even if the file has been created by another user.
To do this, I think the ACLs is the good thing, but the command setfacl does not work, with a Operation not supported error.

Is ACL option set in this kernel ? Is it in the newer kernel ? What is the best way to do what I want ?
Pages: [1]