if you want to change the permissions of a directory (file) you can use the following commands : chown (Change Owner) chgrp (Change Group) chmod (Change Mode) Examples : Set User / Group for Directory : chown user.group dirname/ if you want to do this for the directory and all subdirectories make a chown -R user.group dirname/ (-R = recursive) or chown --recursive user.group dirname/ You have to be in the Directory below that one, you want to change. With this examples you wont need chgrp (set only group permissions) With chmod you can set the attributes of files and directories An directory entry under Un.x Systems look like this : -rwx-rw-r-- rwx r r user group others r= readable w= writeable x= executeable for the exactly syntax of chmod (be carefull with this) see man chmod chmod 777 filname will set world access to the file : -rwxrwxrwx filename OK ? Harald Scharf Softpoint electronic Linux Firewalls and Security Systems h.scharf@softpoint.at -----Ursprüngliche Nachricht----- Von: wmmvdwee [mailto:wmmvdwee@hawedo.com] Gesendet: Donnerstag, 6. April 2000 15:59 An: suse-security Mailinglist Betreff: [suse-security] Change group/owner of dir or files Hi all, I'am relative new to linux I'am using SUSE 6.00 I still do not know how to change ownership of files and directory. Is this done with chmod? To be concreet I want to change the owner or group of a directory owned by root. I want to change the group to users. I tried YAST to change the group users etc, but this seems not to work. How can I use Yast to change the owner or group. Can somebody give me a hind, or how this is done. Thanks, rgd Wil --------------------------------------------------------------------- To unsubscribe, e-mail: suse-security-unsubscribe@suse.com For additional commands, e-mail: suse-security-help@suse.com