LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 01-04-2009, 05:44 AM   #16
GazL
Senior Member
 
Registered: May 2008
Posts: 3,383

Rep: Reputation: 914Reputation: 914Reputation: 914Reputation: 914Reputation: 914Reputation: 914Reputation: 914Reputation: 914

Quote:
Originally Posted by gmartin View Post
I need to find a good tutorial on unix/linux rights. I know the basics, ok. But the sticky bit, uid & gid still trip me up. For instance, the "s" at the beginning of this line:
Code:
srwxrwxrwx 1 mysql mysql 0 2009-01-01 01:24 mysql.sock=
I assume that's sticky but I'm not sure what that means.
Nope. The first character denotes what type of file it is,

d = directory
- = regular file
l = symbolic link
b = block device
s = socket
... and some other less common ones.

The Sticky bit is actually depicted by a 't' in the last column, e.g. drwxrwxrwt.

Over the years, the purpose of the sticky bit has evolved. The wikipedia article linked above has more details.

If you want a starting place to learn a little more, the following is quite often recommended:
http://rute.2038bug.com/index.html.gz

Last edited by GazL; 01-04-2009 at 05:50 AM. Reason: added symlink, as its a pretty common one and I forgot it.
 
Old 01-04-2009, 06:06 AM   #17
Penthux
Member
 
Registered: Dec 2008
Location: Middlesbrough, UK
Distribution: Slackware
Posts: 40

Rep: Reputation: 14
Quote:
Originally Posted by gmartin View Post
I need to find a good tutorial on unix/linux rights. I know the basics, ok. But the sticky bit, uid & gid still trip me up. For instance, the "s" at the beginning of this line:
Code:
srwxrwxrwx 1 mysql mysql 0 2009-01-01 01:24 mysql.sock=
I assume that's sticky but I'm not sure what that means.
The "s" is a world-accessible socket. Meaning, the socket is accessible to anyone logged in on the machine.
 
Old 01-04-2009, 10:05 AM   #18
gmartin
Member
 
Registered: Mar 2003
Location: PA
Distribution: Slackware 13.37 Linux Reg # 341245
Posts: 285

Original Poster
Rep: Reputation: 40
Thanks everyone. System is working fine. I set the permissions by hand. Hopefully I'll be more careful in the future. I also learned a few things so all in all, it was a good day.

Happy New Year
 
Old 01-04-2009, 11:21 AM   #19
bgeddy
Senior Member
 
Registered: Sep 2006
Location: Liverpool - England
Distribution: slackware64 13.37 and -current, Dragonfly BSD
Posts: 1,810

Rep: Reputation: 227Reputation: 227Reputation: 227
Quote:
Quote:
Originally Posted by Alien Bob View Post
The mysql.sock is a socket file, the '=' is how that fact is shown to the user, like an executable file is distinguished by the '*' at the end.

Eric
Quote:
Interesting. Why wouldn't it show up when I do ls -l?
@BCarey: Are you running the command from an X terminal (Konsole or Terminal or such like) ? In runlevel 3 "/etc/profile" sources all the "*.sh" files in "/etc/profile.d". One of these "/etc/profile.d/coreutils-dircolors.sh" sets an alias for the ls command to include the -F option amongst others which appends a classifier to filenames and directories.

This alias is not set when using an X terminal. To simulate this just try "ls -lF" from the terminal.

If you are seeing this odd behaviour from the console then check you have an "/etc/profile" and an "/etc/profile.d/coreutils-dircolors.sh" file that is marked as being executable.

A standard full install should set these up to assign the dircolors and aliases.

Last edited by bgeddy; 01-04-2009 at 11:22 AM.
 
  


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
Foot fell asleep colinstu General 13 04-17-2006 03:52 PM
foot pedal for medical transcription ChinTimDude Suse/Novell 11 10-07-2005 10:38 PM
MicroSoft playing catchup on the back foot TigerOC General 5 06-09-2005 01:56 AM
Can ping to the internet but not to the computer 3 foot away. Why not? Tiyogi Red Hat 10 04-03-2004 05:34 AM
I put my foot down (A tribute to Tinkster) kadaver Slackware 4 11-20-2003 05:50 AM


All times are GMT -5. The time now is 12:32 PM.

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