nixCraft Linux Forum

nixCraft

Linux Tech Support Forum

restrict a user to certain command

This is a discussion on restrict a user to certain command within the Solaris/OpenSolaris forums, part of the UNIX operating systems category; Hi all, I am using Sun OS 5.10. I am new to Unix. Is there some way to restrict a ...


Go Back   nixCraft Linux Forum > UNIX operating systems > Solaris/OpenSolaris

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 03-07-2008, 03:14 PM
Member
User
 
Join Date: Oct 2007
My distro: Linux RHEL 5
Posts: 33
Rep Power: 0
vikas027 is on a distinguished road
Unhappy restrict a user to certain command

Hi all,

I am using Sun OS 5.10. I am new to Unix.

Is there some way to restrict a specific user to certain command say "/usr/bin/more" ??
for example: I want that user1 can execute more command & user2 can't.


Can we somehow edit .profile file in the home directory of user to achieve this ??
OR
is there some other way ??

Pls help.

Thanks N Regards,
VIKAS
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 03-08-2008, 11:29 PM
rockdalinux's Avatar
Contributors
User
 
Join Date: May 2005
Location: Bangalore
My distro: RHEL, HP-UX, Solaris, FreeBSD, Ubuntu
Posts: 557
Rep Power: 6
rockdalinux is a jewel in the rough rockdalinux is a jewel in the rough rockdalinux is a jewel in the rough
Default

I don't think so it is possible; by default user are allowed to run program stored at /bin and /usr/bin; only root can run (almost) /sbin /usr/sbin
__________________
Rocky Jr.
You may have my body & soul, but you will never touch my pride!

If you have knowledge, let others light their candles at it.

Certified to work on HP-UX / Sun Solaris / RedHat
Reply With Quote
  #3 (permalink)  
Old 03-11-2008, 08:14 AM
Junior Member
User
 
Join Date: Mar 2008
My distro: Debian
Posts: 1
Rep Power: 0
biwas is on a distinguished road
Default

How about SUDO
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
restrict access of a user to two directories only vikas027 CentOS / RHEL / Fedora 0 04-15-2008 05:35 PM
UNIX command to find out whether particular process of a particular user is running Santosh Sharma Shell scripting 1 01-17-2008 03:26 PM
Create new user account in Ubuntu Linux from command line sweta Getting started tutorials 0 06-21-2007 01:49 AM
How to restrict devices usage for users in Solaris? kitty@sad Solaris/OpenSolaris 3 05-21-2007 02:05 PM
how to restrict lan users so that they cannot send bhagi123 Linux software 2 11-21-2006 11:38 AM


All times are GMT +5.5. The time now is 12:28 PM.


Powered by vBulletin® Version 3.7.2 - Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36