LinuxQuestions.org
Review your favorite Linux distribution.
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 06-16-2008, 09:34 PM   #1
presarioch
LQ Newbie
 
Registered: Jun 2008
Posts: 21

Rep: Reputation: 15
chmod 777 and 7777


Dear bros,

May I know what's the difference between 777 and 7777?

I saw the following:
0 drwsrwsrwt 2 admin admin 6 Jun 17 09:29 test

What does the "t" and "s" mean?

thanks bros.
 
Old 06-16-2008, 10:19 PM   #2
vectordrake
Senior Member
 
Registered: Nov 2003
Location: NB,Canada
Distribution: Something alpha or beta, binary or source...
Posts: 2,280
Blog Entries: 4

Rep: Reputation: 47
Try this WIKIPEDIA article on chmod. Check out the Special Modes section and follow the links if you need to. The extra digit is used to set elevated privileges on files. The t is sticky and the s is setuid or setgid. Normal users may be able to do more with a file than they normally could if its set with the fourth digit. I don't think that its used on Linux.
 
Old 06-16-2008, 11:26 PM   #3
eggixyz
Member
 
Registered: Apr 2008
Posts: 310

Rep: Reputation: 30
Hey There,

The 4th bit should be on most Linux and Unix OS's. Usually 777 is really 0777.

Like mentioned aboved the "implied zero" can be set for elevated privileges - 4 = setuid, 2 = setgid and 1 = sticky. They behave differently on files and folders. Probably the only thing that isn't even remotely useful any more is setting the sticky bit (1) on a file. They used to that back in the day to load the program's libraries into resident memory so they would come up quicker the next time they were invoked. Not necessary any more, since having tons of memory, paging, swapping advances, etc have made this pretty much obsolete

Best wishes,

Mike
 
Old 06-17-2008, 11:31 AM   #4
presarioch
LQ Newbie
 
Registered: Jun 2008
Posts: 21

Original Poster
Rep: Reputation: 15
thanks very much!!!!
 
Old 06-17-2008, 02:24 PM   #5
eggixyz
Member
 
Registered: Apr 2008
Posts: 310

Rep: Reputation: 30
You got it. Glad to help out a bit

Good luck to you and best wishes,

Mike
 
  


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
chmod 777 664 zerocool22 Linux - Server 7 06-03-2008 07:58 AM
Accessibility / password / chmod 777 Developer Beaud Linux - General 2 07-11-2005 08:46 PM
Is it safe to chmod 777 Navaboy Slackware 4 03-24-2005 07:54 AM
CHMOD in shell : chmod 777 /usr/ <---is that right? cpanelskindepot Programming 5 07-16-2004 06:37 AM
chmod 777 /* ziggamon Linux - Newbie 2 09-25-2003 12:40 PM


All times are GMT -5. The time now is 10:07 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration