Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
User Permissions
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
joint
n00b
n00b


Joined: 13 Jun 2002
Posts: 3

PostPosted: Sun Jul 21, 2002 10:16 pm    Post subject: User Permissions Reply with quote

I cant figure out how too make a binary (like for example 'ping') just to be available för the users in group wheel.

i have chmodded & chgrp in all variants.
i also have tried combinations with the +s (chmod)

but no sucess to just restrict that 'ping' just to be available just for a specified group. once i have the +s flag, everyone can ping, but if i take that s away, and groups & chmodds the file (ping) i just get: permission denied, or can only run by root.

anyone chane help me out.

btw, i know my english isn't so good. :P
Back to top
View user's profile Send private message
ElCondor
Guru
Guru


Joined: 10 Apr 2002
Posts: 520
Location: Vienna, Austria, Europe

PostPosted: Sun Jul 21, 2002 10:27 pm    Post subject: Reply with quote

carefull! the +s means that this program is being run with root-permissions (called "suid root")! some programs need to be suid so they can access certain system-features! on the whole, +s is bad and insecure, try to avoid it!

just for execution of non-suid binaries, chmod it to 550 and chgrp it to the desired group.

* ElCondor pasa *
_________________
Here I am the victim of my own choices and I'm just starting!
Back to top
View user's profile Send private message
joint
n00b
n00b


Joined: 13 Jun 2002
Posts: 3

PostPosted: Mon Jul 22, 2002 12:06 pm    Post subject: Reply with quote

This is just what i did

i have tried the "ping" binary in /bin/, chmod 550, 750, and so on,, and changed the group to wheel. i have a user called Joint, that is in group wheel. but i can't still use the ping command,...

that is what's wierd, i even tried it at my debian box. same thing there. this is my output:

Sector9 bin # chmod 550 ping
Sector9 bin # chgrp wheel ping
Sector9 bin # logout
Sector9 bin # cat /etc/group | grep wheel
wheel::10:root,joint
--------------
joint@Sector9 joint $ ping
ping: ping must run as root
Back to top
View user's profile Send private message
Felix
n00b
n00b


Joined: 25 Apr 2002
Posts: 3
Location: The Netherlands

PostPosted: Mon Jul 22, 2002 2:19 pm    Post subject: Reply with quote

chmod 4750 ping
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum