On 15/02/12 00:37, Anders Johansson wrote:
On Wednesday 15 February 2012 00:08:39 lynn wrote:
6. The permissions work but are not as they are supposed to be due to the chmod in 5 Yes, it looks like the user default acl is wrong because the directory doesn't have read rights for the user. You should do
chmod u+r /home/dropbox setfacl -d -m u::rwx /home/dropbox I got Permission denied when I tried to copy anything after that:-( Still having problems with it. I tried again. Can you have a look at this?
Terminal1: lynn@hh3:~> id uid=1002(lynn) gid=100(users) groups=100(users),33(video) lynn@hh3:~> su root Password: hh3:/home/lynn # id uid=0(root) gid=0(root) groups=0(root) hh3:/home/lynn # rm -r /home/dropbox hh3:/home/lynn # mkdir /home/dropbox hh3:/home/lynn # chown -R root:suseusers /home/dropbox/ hh3:/home/lynn # setfacl -d -m g::rwx /home/dropbox hh3:/home/lynn # chmod u+r /home/dropbox hh3:/home/lynn # setfacl -d -m u::rwx /home/dropbox Terminal2: lynn@hh3:~> id uid=1002(lynn) gid=100(users) groups=100(users),33(video) lynn@hh3:~> su lynn2 Password: Warning: Your password will expire in 41 days on Wed 28 Mar 2012 15:03:45 CEST lynn2@hh3:/home/lynn$ cd ../CACTUS/lynn2 lynn2@hh3:~$ id uid=3000054(lynn2) gid=3000028(suseusers) groups=3000028(suseusers) lynn2@hh3:~$ touch lynn2 lynn2@hh3:~$ cp lynn2 /home/dropbox cp: cannot create regular file `/home/dropbox/lynn2': Permission denied T1 hh3:/home/lynn # setfacl -d -m g::rwx /home/dropbox T2 lynn2@hh3:~$ cp lynn2 /home/dropbox cp: cannot create regular file `/home/dropbox/lynn2': Permission denied T1 hh3:/home/lynn # chmod g+rws /home/dropbox T2 lynn2@hh3:~$ ls -la /home/dropbox/ total 8 drwxrwsr-x+ 2 root suseusers 4096 Feb 15 15:32 . drwxr-xr-x 6 root root 4096 Feb 15 15:22 .. -rw-r--r-- 1 lynn2 suseusers 0 Feb 15 15:32 lynn2 lynn2@hh3:~$ touch /home/dropbox/lynn2_1 lynn2@hh3:~$ ls -la /home/dropbox/ total 8 drwxrwsr-x+ 2 root suseusers 4096 Feb 15 15:33 . drwxr-xr-x 6 root root 4096 Feb 15 15:22 .. -rw-r--r-- 1 lynn2 suseusers 0 Feb 15 15:32 lynn2 -rw-rw-r-- 1 lynn2 suseusers 0 Feb 15 15:33 lynn2_1 lynn2@hh3:~$ su steve4 Password: Warning: Your password will expire in 41 days on Tue 27 Mar 2012 17:27:54 CEST steve4@hh3:/home/CACTUS/lynn2> id uid=3000053(steve4) gid=3000028(suseusers) groups=3000028(suseusers) steve4@hh3:/home/CACTUS/lynn2> cp /home/dropbox/lynn2 /home/dropbox/lynn2.steve4 steve4@hh3:/home/CACTUS/lynn2> ls -la /home/dropbox/ total 8 drwxrwsr-x+ 2 root suseusers 4096 Feb 15 15:35 . drwxr-xr-x 6 root root 4096 Feb 15 15:22 .. -rw-r--r-- 1 lynn2 suseusers 0 Feb 15 15:32 lynn2 -rw-rw-r-- 1 lynn2 suseusers 0 Feb 15 15:33 lynn2_1 -rw-r--r-- 1 steve4 suseusers 0 Feb 15 15:35 lynn2.steve4 steve4@hh3:/home/CACTUS/lynn2> touch /home/dropbox/steve4 steve4@hh3:/home/CACTUS/lynn2> ls -la /home/dropbox/ total 8 drwxrwsr-x+ 2 root suseusers 4096 Feb 15 15:36 . drwxr-xr-x 6 root root 4096 Feb 15 15:22 .. -rw-r--r-- 1 lynn2 suseusers 0 Feb 15 15:32 lynn2 -rw-rw-r-- 1 lynn2 suseusers 0 Feb 15 15:33 lynn2_1 -rw-r--r-- 1 steve4 suseusers 0 Feb 15 15:35 lynn2.steve4 -rw-rw-r-- 1 steve4 suseusers 0 Feb 15 15:36 steve4 Conclusion: If I create a file under /home/dropbox I get -rw-rw-r-- If I copy a file crated in my home folder to /home/dropbox I get -rw-r--r-- Question: Can I have -rw-rw---- no matter whether I create or copy? Thanks for the answers to the other stuff. L x -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org