SUID 'OTHERS'

SUID 'OTHERS'

Post by dcha.. » Tue, 18 Jul 2000 04:00:00



Hi all,
   I have what appears to me to be a very silly question but so far I
have not had any luck figuring out as answer so I'll see if one of you
smart people out there does....

I am trying to set the sticky bit (or suid) for the other group of a
program.

I have tried (as root)
umask 0
chmod +s <program>

chmod o+s <program>

chmod a+s <program>

results:

-r-sr-sr-x   1 root     staff     68440 Mar 08 16:14 <program>

but to no avail.... the above commands will set the sticky bit for owner
and group BUT not others!!

any ideas as to what I am doing wrong or why this is not working???

the machine is an IBM H70 running aix 4.3.3

thanks,
dougc

Sent via Deja.com http://www.deja.com/
Before you buy.

 
 
 

SUID 'OTHERS'

Post by Richard Sno » Tue, 18 Jul 2000 04:00:00




> Hi all,
>    I have what appears to me to be a very silly question but so far I
> have not had any luck figuring out as answer so I'll see if one of you
> smart people out there does....

> I am trying to set the sticky bit (or suid) for the other group of a
> program.

> I have tried (as root)
> umask 0
> chmod +s <program>

> chmod o+s <program>

> chmod a+s <program>

> results:

> -r-sr-sr-x   1 root     staff     68440 Mar 08 16:14 <program>

> but to no avail.... the above commands will set the sticky bit for
owner
> and group BUT not others!!

> any ideas as to what I am doing wrong or why this is not working???

> the machine is an IBM H70 running aix 4.3.3

> thanks,
> dougc

> Sent via Deja.com http://www.deja.com/
> Before you buy.

--

There are 12 mode bits. 9 of them are taken by the user/group/other
read/write/execute bits.  The other three (the 4000, 2000, and 1000)
bits are the setuid bit, the setgid bit, and the sticky bit.  The sticky
bit's status is indicated (by ls) in the execute position of the "other"
permissions.  If it's off, either "-" or "x" is displayed.  If it's on,
"t" is displayed if the "other" execute bit is also on; "T" is displayed
if the "other" execute bit is off.  To turn it on, use chmod +t, use
chmod  -t to turn it off.  You can also set it explicitly with something
like  chmod 1755 <filename>.  Note that this bit is typically ignored
for  files.  For directories, it indicates that only the file owner can
link  or unlink files (this may be unique to AIX, I don't know about
other  UNIX implementations).
Richard Snow
Telleo

Sent via Deja.com http://www.deja.com/
Before you buy.

 
 
 

SUID 'OTHERS'

Post by Jose Pina Coelh » Wed, 19 Jul 2000 04:00:00



> Hi all,
>    I have what appears to me to be a very silly question but so far I
> have not had any luck figuring out as answer so I'll see if one of you
> smart people out there does....

> I am trying to set the sticky bit (or suid) for the other group of a
> program.

setuid is represented as 's' over the user 'x' in the ls output.
setgid is represented as 's' over the group 'x' in the ls output.
stickybit is represented as 't' over the others 'x' in the ls output.

These are three different bits.  SETUID has nothing to do with the
STICKY BIT.

As octal modes:

setuid:      04000
setgid:      02000
sticky:      01000
user-read:   00400
user-write:  00200
user-exec:   00100
group-read:  00040
group-write: 00020
group-exec:  00010
other-read:  00004
other-write: 00002
other-exec:  00001

Effects:

directories:
 files created there can only be deleted by the owner
 of the file or root.

executable files:
 after the program terminates, the image remains in memory.
 (no longer used).

Quote:> I have tried (as root)
> umask 0
> chmod +s <program>

> chmod o+s <program>

> chmod a+s <program>

Try chmod 1555 <program>

--
Doing AIX support was the most monty-pythonesque
activity available at the time.

 
 
 

SUID 'OTHERS'

Post by Villy Kru » Wed, 19 Jul 2000 04:00:00


On Mon, 17 Jul 2000 18:40:10 GMT,

Quote:>Hi all,
>   I have what appears to me to be a very silly question but so far I
>have not had any luck figuring out as answer so I'll see if one of you
>smart people out there does....

>I am trying to set the sticky bit (or suid) for the other group of a
>program.

>I have tried (as root)
>umask 0
>chmod +s <program>

>chmod o+s <program>

>chmod a+s <program>

>results:

>-r-sr-sr-x   1 root     staff     68440 Mar 08 16:14 <program>

>but to no avail.... the above commands will set the sticky bit for owner
>and group BUT not others!!

>any ideas as to what I am doing wrong or why this is not working???

>the machine is an IBM H70 running aix 4.3.3

A suid bit for other would not make a lot of sense.  Suid user will set
the uid and suid group would set the gid; what shoud suid other do?

By the way, it is suid bit and not sticky bit.  The sticky bit you
set using the command chmod +t xxxx  and it will show as a 't' in the
permissions in a ls listing.

Villy

 
 
 

SUID 'OTHERS'

Post by Norman Levi » Fri, 21 Jul 2000 04:00:00



> Hi all,
>    I have what appears to me to be a very silly question but so far I
> have not had any luck figuring out as answer so I'll see if one of you
> smart people out there does....

> I am trying to set the sticky bit (or suid) for the other group of a
> program.

** There is NO suid bit for other.  Sticky is set with +/-t
Check out "Unix Power Tools".  I'm sure there is a section there on suid, sgid and svtx bit.

Quote:

> I have tried (as root)
> umask 0
> chmod +s <program>

> chmod o+s <program>

> chmod a+s <program>

> results:

> -r-sr-sr-x   1 root     staff     68440 Mar 08 16:14 <program>

> but to no avail.... the above commands will set the sticky bit for owner
> and group BUT not others!!

> any ideas as to what I am doing wrong or why this is not working???

> the machine is an IBM H70 running aix 4.3.3

> thanks,
> dougc

> Sent via Deja.com http://www.deja.com/
> Before you buy.

--
Norman Levin
 
 
 

1. What's the 'suid bit' ?

Since I upgraded to RH5.0, Netscape 4.04 takes two or three MINUTES(|)
to start, freezes a lot, and leaves this strange message in the Xterm
window from whence it was started...

    Warning:  This program is an suid-root program or is being run by
the root user.  The full text of the error or warning message cannot be
safely formatted in this environment.  You may get a more descriptive
message by running the program as a non-root user or by removing the
suit bit on the executable.
    Warning:  Cannot convert string "%s" to type %s.

What could this mean?

I've tried running it as a non-root user, but the message - and the
problems - remain.

Thanks for maybe pointing my toward an answer.

--

The box said 'WIN95 or better.' so I installed LINUX!
  HEAR MY VOICEOVER DEMO AT http://www.anncrman.com
           OR BY TELEPHONE AT (212)595-0314

2. Where is UMSDOS

3. 'talk' can't connect to others on the net

4. Interesting ZDnet Opinion Piece

5. Should/must 'eject' be SUID root?

6. Mosaic+term binary wanted

7. D-link DE220 can PING his own IP, but can't PING others'

8. I'm having trouble configuring for internet access.

9. Modem dials in minicom and some versions of 'pppscript' file but not others??

10. Setting 'suid' bit for a program

11. You've got yours, I've got mine... let the others in their shit!

12. VisionFS 1.2 on SCO 5.04: Some PC's see host, others don't

13. Pathetic to see 'Dell and others decide which OS consumer should own'