Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
controlling which programs user can run
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo Chat
View previous topic :: View next topic  
Author Message
Joseph_sys
Advocate
Advocate


Joined: 08 Jun 2004
Posts: 2712
Location: Edmonton, AB

PostPosted: Sun Apr 01, 2007 4:47 pm    Post subject: controlling which programs user can run Reply with quote

Is there an easy way to control which which programs user can run?
Example I want user to use Lynx instead to Firefox.

I suppose it can be done using groups, but I was hoping there is an easier way controlling it.
Back to top
View user's profile Send private message
phajdan.jr
Retired Dev
Retired Dev


Joined: 23 Mar 2006
Posts: 1777
Location: Poland

PostPosted: Sun Apr 01, 2007 6:48 pm    Post subject: Reply with quote

Filesystem ACLs, maybe combined with trusted path execution from grsecurity kernel patch (included in hardened-sources).
Back to top
View user's profile Send private message
BlackEdder
Advocate
Advocate


Joined: 26 Apr 2004
Posts: 2588
Location: Dutch enclave in Egham, UK

PostPosted: Sun Apr 01, 2007 7:57 pm    Post subject: Reply with quote

Code:
mv /usr/bin/firefox /root/
ln -s /usr/bin/firefox /usr/bin/lynx
Back to top
View user's profile Send private message
runningwithscissors
Guru
Guru


Joined: 21 Apr 2006
Posts: 454
Location: the third world

PostPosted: Mon Apr 02, 2007 7:56 am    Post subject: Reply with quote

only group execute bit on binaries?
Back to top
View user's profile Send private message
Taladar
Guru
Guru


Joined: 09 Oct 2004
Posts: 458
Location: Bielefeld, Germany

PostPosted: Mon Apr 02, 2007 8:00 pm    Post subject: Reply with quote

I believe you also need to remove the read bit or users can still start the app with ld.so directly.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo Chat 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