LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 05-05-2008, 01:27 AM   #1
DaftDave
Member
 
Registered: Mar 2008
Posts: 34

Rep: Reputation: 15
Changing File permissions


How do you change the read and write permissions for a file or directory in Linux Mint?
 
Old 05-05-2008, 01:44 AM   #2
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
Same as you do in any other distro: with chmod. Read the man page for info on how to use it.
 
Old 05-05-2008, 02:14 AM   #3
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
If the file or directory is on a vfat filesystem, such as a pendrive, then you can't change the ownership or permissions on the mounted filesystem. The ownership and permissions are set in the mount command. See the "man mount" and look for the "uid, gid, fmask & dmask" options.
 
Old 05-05-2008, 04:29 AM   #4
DaftDave
Member
 
Registered: Mar 2008
Posts: 34

Original Poster
Rep: Reputation: 15
Think i'm going to have to find a very easy to follow tutorial which will show me how i might navigate through the Linux file system and do any changes to files etc. Thanks for the replies
 
Old 05-05-2008, 04:48 AM   #5
Honeysuckle
Member
 
Registered: Dec 2007
Location: Australia
Distribution: Puppy, debian
Posts: 118

Rep: Reputation: 15
Quote:
Originally Posted by DaftDave View Post
Think i'm going to have to find a very easy to follow tutorial
I found this easy to follow:
http://www.cae.wisc.edu/site/public/...issions-change
 
Old 05-05-2008, 11:54 AM   #6
Lemmings
LQ Newbie
 
Registered: May 2008
Posts: 7

Rep: Reputation: 0
Quote:
Originally Posted by Nylex View Post
Same as you do in any other distro: with chmod. Read the man page for info on how to use it.
Could you be more explicit. The man page information is very difficult to understand for people that are just trying out Linux for the first time.
 
Old 05-05-2008, 12:00 PM   #7
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
What don't you understand?
 
Old 05-07-2008, 03:52 AM   #8
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Here is a link that explains the Linux directory hierarchy.
http://linuxhelp.blogspot.com/2008/0...-fun-easy.html

You may be able to right click on a file and then change the permissions graphically. ( I don't use Linux Mint. )

The chmod command isn't difficult. There are three sets of permissions. The User, Group, and all Others. There are three fundamental permissions, Read, Write and Execute. The Execute bit needs to be set to run a program. For directories, the Execute but is used to enable you to enter the directory.

Some examples are:
chmod u+rw file
chmod ug+rwx file
chmod o=rwx directory

The "+" plus sign is what you use to turn on a permission bit. The "-" sign is what you would use to turn off a particular permission bit. The "=" will assign the permission bits you indicate exactly, clearing any you didn't select.

I find it easier to read a nicer formatted man page:
man chmod -t | kghostview -

If you don't have kghostview, try a different postscript viewer. The -t option will produce a print quality postscript version of the man page(s). I find this version easier to read. If you used kde, you could enter "man:chmod" in the konqueror web browser. This may work as well for info pages: "info:chmod".
 
  


Reply



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
Changing permissions on file jonette20 Linux - General 12 02-19-2008 01:11 PM
file permissions are changing on me viniosity Linux - General 2 10-12-2004 08:13 PM
What is changing my file permissions? lamekain Linux - Security 10 12-08-2003 04:22 AM
Changing File Permissions? bmann Linux - Networking 3 04-10-2003 08:22 PM
Changing file permissions on a SAMBA file share apenney Linux - Software 0 02-11-2002 04:42 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:14 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration