LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 09-26-2004, 11:57 AM   #1
rakesh_em
LQ Newbie
 
Registered: Sep 2004
Location: India
Distribution: Slackware,Mandrake,Fedora
Posts: 14

Rep: Reputation: 0
Angry file permissions


I got problems setting file permissions please help me out with the commands i know its "chmod" but think i am not setting it the right way.
Also help me out with the command to view all the users entitled to use the machine and the groups they are in.
 
Old 09-26-2004, 12:00 PM   #2
AAnarchYY
Member
 
Registered: Sep 2004
Location: Carlisle, MA
Distribution: Debian 8
Posts: 419

Rep: Reputation: 30
man chmod
+/-x toggles the executable flag
+/-w toggles the write flag
+/-r toggles the read flag

all groups are listed in /etc/group

Last edited by AAnarchYY; 09-26-2004 at 12:02 PM.
 
Old 09-26-2004, 12:20 PM   #3
redfrost
LQ Newbie
 
Registered: Mar 2004
Location: Tallinn, Estonia
Distribution: Debian GNU/Linux
Posts: 2

Rep: Reputation: 0
chmod xyz filename

where x is for user/owner, y is for group and z is for users not from that group.
permissions:
4 - read
2 - write
1 - execute

so if you'd like to change permissions from read to read+write (4+2) type

$chmod 644 filename

now you have read/write access, but group and others have only read access.
use execute bit for executables and directories
 
Old 09-27-2004, 04:07 AM   #4
avirup dasgupta
Member
 
Registered: Aug 2003
Distribution: Redhat , Fedora Core4, DSL,Solaris
Posts: 49

Rep: Reputation: 15
Sticky bits

There are additional permissions.
These are the set group or user ID bit (s), the sticky bit (t), and X.
These permissions can be applied to directories or files. The sticky, SUID, or SGID bits can be set the same way other other file and directory permissions are set.
Only root is permitted to turn the sticky bit on or off. In addition the sticky bit applies to anyone who accesses the file. The syntax for setting the sticky bit on the /tmp directory is as follows:

chmod +t /tmp

So the output of ls -l will look either like this,
->
drwxrwxrwt 5 sys sys 543 May 21 02:41 tmp

or like this->
drwxrwxrwT 5 sys sys 543 May 21 02:41 tmp





Thanks,

Avirup
 
Old 09-27-2004, 04:43 PM   #5
bulliver
Senior Member
 
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86_64; Gentoo PPC; FreeBSD; OS X 10.9.4
Posts: 3,760
Blog Entries: 4

Rep: Reputation: 78
http://www.linuxquestions.org/questi...ticle&artid=20
 
  


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
file permissions OK, but command permissions? stabu Linux - General 2 10-05-2005 12:00 PM
locking a usage policy file/ftp file permissions gbow Linux - Newbie 0 02-16-2004 05:35 AM
CVS - file permissions and file ownership Osten Linux - Software 3 01-18-2004 04:08 PM
file permissions and file owner won't change Nadim Slackware 5 11-29-2003 06:03 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 11:32 PM.

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