LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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 10-31-2004, 06:48 PM   #1
SonoranFun
Member
 
Registered: Oct 2004
Posts: 113

Rep: Reputation: 15
How to change permissions?


Please help me, I'm just trying to delete some things and drop and drag some others and it won't let me saying "I don't have permission". I can right click on the folder then click properties then change some stuff that way but I need to do it for each file and I'm sure there's an easier way so please help me. I'm using Ubuntu BTW.

Thanks a lot,
Adam
 
Old 10-31-2004, 07:21 PM   #2
Genesee
Member
 
Registered: Dec 2002
Distribution: Slackware
Posts: 927

Rep: Reputation: 30
this should help explain permissions:

https://www.redhat.com/docs/manuals/...ownership.html

you can easily set permissions on multiple files or dirs via the terminal using the chmod command explained above....
 
Old 10-31-2004, 07:29 PM   #3
ToniT
Senior Member
 
Registered: Oct 2003
Location: Zurich, Switzerland
Distribution: Debian/unstable
Posts: 1,357

Rep: Reputation: 47
1. Open a prompt.
2. Change to the correct directory where you want to change the permissions.
3. Change the permissions.

Assuming the step 3 is the hard one.
eg. to give owner of the file named foo a [r]ead,[w]rite and/or e[x]ecute permission, you can use command
Code:
chmod u+rwx foo
To do the same thing for every file in the directory,
you can write:
Code:
chmod u+rwx *
To change permissions for the group or others (the ones not being the owner of the file or belonging to the group in question) instead, replace the u with g or o respectively.

To change the owner of the file, you can use the command chown to do it.

For more details see
"man chmod"
"man chown"
and for example tutorial about unix permissions.
 
Old 10-31-2004, 07:30 PM   #4
ToniT
Senior Member
 
Registered: Oct 2003
Location: Zurich, Switzerland
Distribution: Debian/unstable
Posts: 1,357

Rep: Reputation: 47
The tutorial in post #2 looks better than mine, read it.
 
Old 11-02-2004, 10:10 AM   #5
jonr
Senior Member
 
Registered: Jan 2003
Location: Kansas City, Missouri, USA
Distribution: Ubuntu
Posts: 1,040

Rep: Reputation: 47
And if you use a file manager utility like Midnight Commander, you can use that to change ownerships and permissions, from its menu of commands. But it's quicker and often easier to do it from the command line once you get used to it.

It took me a long while to learn that a lot of mysterious problems I was having came from having ownership and/or permission set wrong. Now I check those out first when something doesn't want to work!
 
  


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
Cannot chown or change permissions Fear Fedora 3 10-26-2005 07:07 PM
How do you change a files permissions Charlie Chan Linux - Security 8 10-20-2004 10:19 PM
Can't change permissions LitlJay Linux - Software 9 05-21-2004 01:41 PM
Change permissions for devices? LizardMan Linux - Hardware 3 07-03-2003 01:32 PM
How Can I Change Permissions monkeymartin Linux - General 1 03-25-2003 12:47 PM


All times are GMT -5. The time now is 12:16 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