LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   How do I change directory permissions ? (https://www.linuxquestions.org/questions/linux-software-2/how-do-i-change-directory-permissions-320406/)

cwolf78 05-05-2005 11:15 AM

How do I change directory permissions ?
 
I am using SuSE 9.2 pro... I am trying to figure out where/how the directory permissions are changed... I am sure this is a fairly simple task... :rolleyes:

tredegar 05-05-2005 11:37 AM

From a terminal, take a look at man chmod.

If you are running KDE, you can right-click a file or directory then Properties, then Permissions.

For the default permissions for creating files / directories, investigate umask , which is usually set in your /home/.bash_profile

jschiwal 05-05-2005 11:37 AM

Use the chmod command.
chmod g+x <dirname>
will allow a group member to enter a directory.
To change the owner/group attributes use the chown/chgrp commands.
chown cwolf78 <dirname>

This line changes both the owner and group
chown cwolf78:users <dirname>

To change the ownership of a directory, you will need to su to root first.
Also, you hadn't mentioned what type of filesystem the directory is in. If it is VFAT, then these commands won't work because the filesystems themselves don't hold the necessary attributes. You will need to use the 'uid=' and 'gid=' options in the mount command.

I would recommend that you read through the fileutils info pages. Try entering: info:coreutils/top in the konqueror web browser for an html based info manual.
This manual will explain the file permissions and also describe how to use many useful commands

cwolf78 05-05-2005 12:15 PM

Thanks, that did the trick! I will be reading up on the groups and permissions ... seems sort of complicated.


All times are GMT -5. The time now is 05:03 AM.