Did you know LQ has a Linux Hardware Compatibility List?
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 05-05-2005, 11:15 AM   #1
Registered: Apr 2005
Location: Arlington, TX
Distribution: n/a
Posts: 61

Rep: Reputation: 15
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...
Old 05-05-2005, 11:37 AM   #2
LQ 5k Club
Registered: May 2003
Location: London, UK
Distribution: Debian "Jessie"
Posts: 6,057

Rep: Reputation: 377Reputation: 377Reputation: 377Reputation: 377
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
Old 05-05-2005, 11:37 AM   #3
LQ Guru
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 657Reputation: 657Reputation: 657Reputation: 657Reputation: 657Reputation: 657
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
Old 05-05-2005, 12:15 PM   #4
Registered: Apr 2005
Location: Arlington, TX
Distribution: n/a
Posts: 61

Original Poster
Rep: Reputation: 15
Thanks, that did the trick! I will be reading up on the groups and permissions ... seems sort of complicated.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
FTP Change Directory Permissions rubbercash Linux - Networking 5 07-29-2004 04:54 PM
can't change directory permissions walterbyrd Debian 7 07-24-2004 01:20 PM
How do I Change directory permissions? Stevetgn Linux - Newbie 8 06-09-2004 12:09 AM
Does anyone know why mounting NFS shares causes the directory permissions to change? gkneller Linux - Networking 4 01-29-2004 08:21 AM
How do I change read/write permissions for a whole directory? Stevetgn Linux - Newbie 8 12-31-2003 07:41 AM

All times are GMT -5. The time now is 12:09 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration