Permissions

Michael Fratoni mfratoni at tuxfan.homeip.net
Sun Dec 7 06:13:37 UTC 2003


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Sunday 07 December 2003 12:10 am, Marek wrote:
> Hi
>
> My home dir permissions have got a bit tangled up.
>
> /home/marek has the correct permissions. But all the dir under that are
> user 501 (-rw-r--r--) and i can not write to them.
>
> I have tried setting the permissions with konqueror but it always gets
> stuck with some file that cannot be changed.
>
> Is there a command line to do this all in one shot. Instead of doing
> chmod 777 on each dir which only seems to work. 755 does not and chmod
> 777 /home/marek does not either. 777 seems to be incorrect anyway.

Either of these should work.

find /home/marek -type d -exec chmod 775 "{}" \;

or, to be prompted before each change:

find /home/marek -type d -ok chmod 775 "{}" \;

Hope that helps,
- -- 
- -Michael

pgp key:  http://www.tuxfan.homeip.net:8080/gpgkey.txt
Red Hat Linux 7.{2,3}|8.0|9 in 8M of RAM: http://www.rule-project.org/en/
- --
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE/0sURn/07WoAb/SsRApzHAKCCmLHYCxSrx3snnmAi6igA7lcVMACfTFxQ
9TuMsc9D5np2jb7sRAV89Ss=
=FXt1
-----END PGP SIGNATURE-----





More information about the users mailing list