User commands autharization


 
Thread Tools Search this Thread
Operating Systems Solaris User commands autharization
# 1  
Old 09-17-2012
Data User commands autharization

Hello all

What I want to do is create a user and allow him to run the following commands only :

su
cd
ls
cat

The moment he tries to use any other commands , he wont be allowed to do so.
So how can I implement this ??

Regards
# 2  
Old 09-17-2012
Basically, you write a shell that only recognizes these four utilities, create a new user account with your shell set as that user's login shell, and let a user login to that account.

Note that if you implement your shell using a normal shell (e.g., bash, ksh, sh, etc.), you not only have to restrict the utilities they are allowed to run, you also have to be sure that the arguments they pass to these utilities don't make use of `...`, $(...), and other shell constructs to invoke other utilities while parsing command-line arguments. And, obviously, if your restricted user can successfully execute the su utility, there will be no restrictions on what that user can run in the environment set up by su.
# 3  
Old 09-18-2012
I would look into RBAC.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Reading ls -l output line by line awk the user name and su user to run commands

Using ksh on AIX what I am trying to do is to read the ls -l output from a file in a do while loop line by line. Extract the user name(3rd field) and the directory/file name(9th field) using awk and save them into variables. su -c to the user and change directory/file permisions to 777. Script I... (13 Replies)
Discussion started by: zubairom
13 Replies

2. UNIX for Dummies Questions & Answers

user defined commands

Hi, i would like to create user defined commands. e,g: if an user executes , mkdircd test then a directory called test should be created and it should be cd to test. How i can create the command mkdircd with below action: mkdir $1 && cd $1. Please help me in achieving this (7 Replies)
Discussion started by: pandeesh
7 Replies

3. UNIX for Dummies Questions & Answers

Commands to monitor other user's activity

What commands would you recommend in order to monitor things like when a user logs on to a server, assuming you know that user's name on the server? (2 Replies)
Discussion started by: Sotau
2 Replies

4. UNIX for Advanced & Expert Users

Track user commands

Hi, I have a unix server and I am concerned about the security on that server. I would like to be able to write a script that records all the commands that were typed at the command prompt before the user calls the 'history -c' command and deletes all the history. I was thinking about firing or... (7 Replies)
Discussion started by: mishkamima
7 Replies

5. Solaris

whole day commands executed by particular user

Hi all I want to know the commands executed a by particular user .. for the whole day on my machine. I have checked out with the commad $lastcomm <user> It is throwing an error called: .. /var/adm/pacct: No such file or directory Can u help me in this regard.. Thank U Naree (1 Reply)
Discussion started by: naree
1 Replies

6. Solaris

I want to know whole day commands executed by particular user

Hi all I want to know the commands executed a by particular user .. for the whole day on my machine. I have checked out with the commad $lastcomm <user> It is throwing an error called: .. /var/adm/pacct: No such file or directory Can u help me in this regard.. Thank U... (3 Replies)
Discussion started by: naree
3 Replies

7. Solaris

how can obtain other user commands on the same server.

hi buddies, i want to learn something,so that we have several users on a sun server and via telnet, we are connecting to server same username and password root/something as root and after connection i want to see what other roots or users are doing on the server, i want to see their command.... (2 Replies)
Discussion started by: nibiru78
2 Replies

8. UNIX for Advanced & Expert Users

Capturing commands executed by user

Hello Unix Champs, For keeping audit trail, I want to log the commands entered by the normal users, on their terminal into a text file. I tried putting a "script -a username.timestamp.txt" in the user profile file, but script command stops execution when user types exit or presses CTRL+D... (3 Replies)
Discussion started by: bhaven.haria
3 Replies

9. Shell Programming and Scripting

Capture user imput commands

Hi all, I have a problem which needs to be solved soon because it affects auditing capabilities. There is an application id that has to be used by other users for the purpose of production support. The application user id uses C shell. We allow users to switch to the application user id based... (1 Reply)
Discussion started by: s_saran
1 Replies

10. UNIX for Dummies Questions & Answers

user executing priveleged commands

hey peeps i am pretty much new to unix, my first semester at uni, so if anyone can help, would be greatly appreciated. how the hell is it possible for a user to execute priveleged commands without the user having a superuser password?? if anyone can help me, i would appreciate it very... (2 Replies)
Discussion started by: 30177005
2 Replies
Login or Register to Ask a Question