Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 12-22-2002, 04:11 PM   #1
TheFLY
So Fucking Banned
 
Join Date: Jan 2001
Location: http://www.thefly.net/ --- Quit your job and live off steady traffic.
Posts: 11,856
Newbie Unix Question...

What does the "s" mean here...? Do I change this with chmod?

This is a directory...

drwxr-sr-x 2 thefly thefly
TheFLY is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-22-2002, 04:14 PM   #2
pr0
rockin tha trailerpark
 
pr0's Avatar
 
Industry Role:
Join Date: May 2001
Location: ~Coastal~
Posts: 23,088
format s:
pr0 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-22-2002, 04:15 PM   #3
TheFLY
So Fucking Banned
 
Join Date: Jan 2001
Location: http://www.thefly.net/ --- Quit your job and live off steady traffic.
Posts: 11,856
byte me
TheFLY is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-22-2002, 04:17 PM   #4
pr0
rockin tha trailerpark
 
pr0's Avatar
 
Industry Role:
Join Date: May 2001
Location: ~Coastal~
Posts: 23,088
chmod -y -o -u -r

mkdir -m -o -m
pr0 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-22-2002, 04:19 PM   #5
[Labret]
Registered User
 
Industry Role:
Join Date: May 2001
Location: Са́нкт-Петербу́рг
Posts: 10,945
rm -rf thefly
[Labret] is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-22-2002, 04:21 PM   #6
ServerGenius
Confirmed User
 
Join Date: Feb 2002
Location: Amsterdam
Posts: 9,377
It's called suid bit or sgid bit by default, unix installations have many programs installed suid root. Suid root refers to set user id root. This allows the program to do functions not normally allowed for users to do themselves. Low level networking routines, controlling graphical display functions, changing passwords, and logging in are all examples of programs that rely on executing their functions as a user that is not restricted by standard file permissions. While many programs need this functionality, the program must be bug free in only allowing the user to do the function the program was designed for.

DynaMite
__________________
| http://www.sinnerscash.com/ | ICQ: 370820 | Skype: SinnersCash | AdultWhosWho |
ServerGenius is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-22-2002, 04:23 PM   #7
SilverTab
Confirmed User
 
Join Date: Nov 2001
Location: MTL
Posts: 5,060
on a directory it means 'sgid or set the group owner on created files to
the group that owns the directory rather than the group of the user
creating the file, it's handy for controlling the ownership of uploaded
files....(s in that position implies x btw, since there wouldn't be much point in
doing this if you didn't have exec permission to start with)

---------------
Not sure of what it means but that's what I found
__________________
mmm my sig was too big... no more cool animation
but hey still! need php? ICQ: 94586959

Last edited by SilverTab; 12-22-2002 at 04:25 PM..
SilverTab is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-22-2002, 04:23 PM   #8
[Labret]
Registered User
 
Industry Role:
Join Date: May 2001
Location: Са́нкт-Петербу́рг
Posts: 10,945
its a sticky bit, dont touch it.
[Labret] is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-22-2002, 04:24 PM   #9
TheFLY
So Fucking Banned
 
Join Date: Jan 2001
Location: http://www.thefly.net/ --- Quit your job and live off steady traffic.
Posts: 11,856
Quote:
Originally posted by DynaSpain
It's called suid bit or sgid bit by default, unix installations have many programs installed suid root. Suid root refers to set user id root. This allows the program to do functions not normally allowed for users to do themselves. Low level networking routines, controlling graphical display functions, changing passwords, and logging in are all examples of programs that rely on executing their functions as a user that is not restricted by standard file permissions. While many programs need this functionality, the program must be bug free in only allowing the user to do the function the program was designed for.

DynaMite
But how do I turn on the sgid bit for an otherwise "normal" directory?
TheFLY is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-22-2002, 04:25 PM   #10
extreme
Confirmed User
 
Industry Role:
Join Date: Oct 2002
Location: lalaland
Posts: 2,120
Quote:
Originally posted by TheFLY
What does the "s" mean here...? Do I change this with chmod?

This is a directory...

drwxr-sr-x 2 thefly thefly

+s is suid ... for example, if an executable file is +s and owned by root it will get executed with root permissions. For example /bin/passwd needs to be suid root since it writes to /etc/passwd. Only root can normaly do that .. but to give normal users the abillity to change their passwords, unix solves it by having it +s (and owned by root)

Suid files are the ones hackers use to get root localy once they're in your system with shellaccess. Every suidfile is a potential securityhole so if you dont need the functionallity it provides I suggest You remove as many suid-files as you can...

Find them with:
Code:
find / -type f \( -perm -4000 -o -perm -2000 \) -exec ls -ld '{}' \;
You just remove the suid flag with "chmod -s file".
extreme is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-22-2002, 04:26 PM   #11
SilverTab
Confirmed User
 
Join Date: Nov 2001
Location: MTL
Posts: 5,060
From what I understand, s implies x so try not giving the execute right and see what you get.. (i'm just guessing )
__________________
mmm my sig was too big... no more cool animation
but hey still! need php? ICQ: 94586959
SilverTab is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-22-2002, 04:26 PM   #12
TheFLY
So Fucking Banned
 
Join Date: Jan 2001
Location: http://www.thefly.net/ --- Quit your job and live off steady traffic.
Posts: 11,856
Hmm duh I just did chmod +s

Let's see...

I get

drwsr-sr-x

instead of

drwxr-sr-x

well I guess I can play some more...

Last edited by TheFLY; 12-22-2002 at 04:27 PM..
TheFLY is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 12-22-2002, 04:28 PM   #13
extreme
Confirmed User
 
Industry Role:
Join Date: Oct 2002
Location: lalaland
Posts: 2,120
uhm, a couple of good answers while I typed mine ;) ...
extreme is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.