LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 07-16-2002, 01:28 AM   #1
thedragon
LQ Newbie
 
Registered: Jul 2002
Posts: 2

Rep: Reputation: 0
Limit unix commands of a user ID


(1) What are the list of commands that can be issued by a user (not superuser, just orindary user) ?

(2) How can an administrator limit a user to use only a subset of commands out of the originally allowed ones.

Please help. Thanks
 
Old 07-16-2002, 10:42 AM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 270Reputation: 270Reputation: 270
1. if they are not in the users path and they don't have permissions to use the command then those are the commands they can use.

2. permissions would prevent that.
 
Old 07-16-2002, 08:28 PM   #3
thedragon
LQ Newbie
 
Registered: Jul 2002
Posts: 2

Original Poster
Rep: Reputation: 0
so do you mean I should restrict them to access the system path which contains unix commands, but I need to copy those commands (which they are allowed to use) to their user path ?
 
Old 07-16-2002, 08:37 PM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
You could strip off the world executable bit and use sudo to grant per user/group execution rights. Note if it is about binaries whose access is PAMmified there's a simple PAM access module as well works kinda like (hosts|cron|whatever).allow
 
  


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
question about unix commands foxele Programming 4 01-24-2005 05:33 AM
Read, Print Unix Commands? gopikrish Linux - General 1 12-11-2004 02:07 PM
Proftpd commands and procedures to limit Radicalm16 Linux - Software 1 12-24-2003 08:34 PM
Basic Unix commands req dark_light Linux - Newbie 7 04-04-2002 06:33 PM
Good book on UNIX commands psyklops Linux - General 7 01-26-2002 08:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 03:07 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration