LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 03-22-2013, 07:29 AM   #1
kais1
Member
 
Registered: Dec 2008
Posts: 61

Rep: Reputation: 17
Change folder permissions


Hai all,

I have a folder to be changed for acces rights.

The folder is permission is

drwxr-xr-x

and need to be changed to

drwxrwxr-x

I referred the below pointers :

http://docs.joomla.org/How_do_UNIX_f...ssions_work%3F
http://www.washington.edu/computing/...rmissions.html

but still helpless. Please advise.

Kai
 
Old 03-22-2013, 07:35 AM   #2
scratchyrat
LQ Newbie
 
Registered: May 2010
Location: United Kingdom
Distribution: Debian, Red Hat, AIX, Ubuntu, Fedora
Posts: 27

Rep: Reputation: 3
What commands have you tried executing. Did you get any errors?
 
Old 03-22-2013, 07:37 AM   #3
linosaurusroot
Member
 
Registered: Oct 2012
Distribution: OpenSuSE,RHEL,Fedora,OpenBSD
Posts: 743
Blog Entries: 2

Rep: Reputation: 193Reputation: 193
What exact commands have you used and what happened?
 
Old 03-22-2013, 08:01 AM   #4
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654
First of all, what file system is the directory on? If it is a Linux filesystem such as ext4, use the chmod command. If it is on a fat32 or ntfs filesystem, then you can't change the permissions of a single directory, only all of them in the mount command options.

chmod ug=rwx,o=rx <dirname>
same as
chmod 0775 <dirname>


You should provide more information. Such as where the directory is. In your $HOME directory?

Last edited by jschiwal; 03-22-2013 at 08:03 AM.
 
Old 03-22-2013, 08:12 AM   #5
scratchyrat
LQ Newbie
 
Registered: May 2010
Location: United Kingdom
Distribution: Debian, Red Hat, AIX, Ubuntu, Fedora
Posts: 27

Rep: Reputation: 3
Also, which user are you logged in as, and does that user account have permission to modify files & folder permissions wherever you are trying
 
Old 03-22-2013, 09:23 AM   #6
shivaa
Senior Member
 
Registered: Jul 2012
Location: Grenoble, Fr.
Distribution: Sun Solaris, RHEL, Ubuntu, Debian 6.0
Posts: 1,797
Blog Entries: 4

Rep: Reputation: 285Reputation: 285Reputation: 285
"drwxr-xr-x" means "A directory (d), having all read/write/execute (rwx i.e. 4+2+1=7) permissions for owner, read/execute (r-x i.e. 4+0+1=5) for group, and read/execute (r-x i.e. 4+0+1=5) for others". Or, in order words, permission is simply 755. And you can sum up it as:
Quote:
r - read (4)
w - write (2)
x - execute (1)
And if you want to change it to "drwxrwxr-x", then it means you want to change it to "all read/write/execute (rwx i.e. 4+2+1=7) permissions for owner, all read/write/execute (rwx i.e. 4+2+1=7) permissions for group, and read/execute (r-x i.e. 4+0+1=5) for others" i.e. you want to set it to 775. Therefore do it as:
Code:
~$ chmod 775 <directoryname>

Last edited by shivaa; 03-22-2013 at 09:26 AM. Reason: Modification
 
Old 03-22-2013, 10:13 AM   #7
mddesai
Member
 
Registered: Mar 2013
Location: Bengaluru, India
Distribution: Redhat, Arch
Posts: 479

Rep: Reputation: 132Reputation: 132
Understanding Linux File Permissions
 
Old 03-22-2013, 10:21 AM   #8
kooru
Senior Member
 
Registered: Sep 2012
Location: Italy
Distribution: Slackware, NetBSD
Posts: 1,233
Blog Entries: 4

Rep: Reputation: 256Reputation: 256Reputation: 256
Other resource: http://tldp.org/LDP/GNU-Linux-Tools-...rmissions.html
 
  


Reply


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
how to change folder permissions in fc-6 chryslercirrus99 Fedora 3 06-07-2007 06:32 PM
can't change permissions for windows folder nikoz Linux - General 1 06-21-2006 08:19 AM
FOLDER permissions change automatically Echo Kilo Linux - Newbie 5 08-21-2005 03:09 AM
Script to change folder permissions waitingforOES Linux - Newbie 1 03-07-2005 01:34 PM
Change folder permissions eggoz Linux - Newbie 2 03-17-2003 01:35 AM


All times are GMT -5. The time now is 07:06 AM.

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