Unix Technical Forum

how to restrict command to user

This is a discussion on how to restrict command to user within the AIX Operating System forums, part of the Unix Operating Systems category; --> Hi all, can any one tell me how to restrict some sommands to user.. example, crontab, at, batch, lsvg ...


Go Back   Unix Technical Forum > Unix Operating Systems > AIX Operating System

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-05-2008, 12:52 PM
kavin
 
Posts: n/a
Default how to restrict command to user

Hi all,

can any one tell me how to restrict some sommands to user..

example,
crontab, at, batch, lsvg etc,.

Regards
````````````
Kavin

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-05-2008, 12:52 PM
Joachim Gann
 
Posts: n/a
Default Re: how to restrict command to user

kavin wrote:
> Hi all,
>
> can any one tell me how to restrict some sommands to user..
>
> example,
> crontab, at, batch, lsvg etc,.
>
> Regards
> ````````````
> Kavin
>


namely for crontab(1) and at(1) there are 2 config files
/var/adm/cron/cron.allow and cron.deny and at.allow at.deny respectively
which control their usage.

More generally you can control execution permissions through the unix
file system permissions (surely you know chmod). So your restricted
users could be in the "staff" group and you could take away "others
execute" permission from /bin/lsvg. BUT you need to be very careful that
you understand which users (maybe not so obviously at first glance) use
the commands and not to lock them out which could result in very subtle
and hard to discover malfunctions.

Better approach in my opinion would be to give your untrustworthy users
a restricted shell (rksh e.g.), remove /bin, /usr/bin and so on from the
PATH and set up ksh aliases for the commands they need to use.
That's what IBM chose as a method for torturing, er... restricting HMC
administration users.

hth
Joachim
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-05-2008, 12:52 PM
Jim.Lane@cibc.com
 
Posts: n/a
Default Re: how to restrict command to user

On Aug 30, 2:45 am, kavin <kavinilammur...@gmail.com> wrote:
> Hi all,
>
> can any one tell me how to restrict some sommands to user..
>
> example,
> crontab, at, batch, lsvg etc,.
>
> Regards
> ````````````
> Kavin


Do you mean not allow a user to execute certain commands? If so, you
can do this by turning off world execute permission and ensuring that
the users isn't in a group that has group execute.

HTH

-Jim Lane

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 01-05-2008, 12:52 PM
miles
 
Posts: n/a
Default Re: how to restrict command to user

On Aug 30, 1:45 am, kavin <kavinilammur...@gmail.com> wrote:
> Hi all,
>
> can any one tell me how to restrict some sommands to user..
>
> example,
> crontab, at, batch, lsvg etc,.
>
> Regards
> ````````````
> Kavin


Investigate the use of sudo. It is a very useful tool.

Miles

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 01-05-2008, 12:52 PM
Henry
 
Posts: n/a
Default Re: how to restrict command to user

On Aug 31, 12:46 am, miles <my_spam_acco...@shaw.ca> wrote:
> On Aug 30, 1:45 am, kavin <kavinilammur...@gmail.com> wrote:
>
> > Hi all,

>
> > can any one tell me how to restrict some sommands to user..

>
> > example,
> > crontab, at, batch, lsvg etc,.

>
> > Regards
> > ````````````
> > Kavin

>
> Investigate the use of sudo. It is a very useful tool.
>
> Miles


hear, here
(or is that "hear, hear" ?)

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 11:19 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com