root user (urgent!!)


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting root user (urgent!!)
# 1  
Old 09-27-2006
root user (urgent!!)

I am working on unix server, right now i have a task to do which is to create 7 users, 3 of them must have the same privilige of the root user and the rest to be normal users (i.e they are not allowed to perform any of the root commands nor create or edit any file).....is there anyway to do this..its urgent please......

Thanks for your help.
# 2  
Old 09-27-2006
The simplest and most horrifying method is to give the users a UID of 0. That's the key. The slightly less horrifying method is to limit access to the su(1M) via a specific group that is assigned to the binary and those users also share. Finally, you might consider the sudo utility.
# 3  
Old 09-27-2006
You can create multiple users with the same uid? What effects does this have?
# 4  
Old 09-27-2006
It has the effect of making things very confusing, but there are situations where it can "make sense". For example, I support an environment where one customer can drop-off and pickup files via FTP or Kermit (over Telnet). Operational requirements are such that multiple accounts with different passwords be maintained, but as far as my system is concerned, all files are from the same customer. The "telnet" account is restricted to a BBS-style menu whereas the "FTP" account is chroot'd into another directory.

When you do an ls -l, the username associated with the first entry with the duplicate UID in /etc/passwd is displayed. Other than that, it's just the same user with two different ways of accessing the system.

To your original posting, however, it would make more sense for auditing purposes if all users "requiring root access" had a non-root account, then su'd to root either through sudo or by creating a specific group which all members belong to as well as the group on the su command. Then, limit execution of su to root (the owner) and, historically, wheel (the group).

Confusing, no?
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

How to Switch from Local user to root user from a shell script?

Hi, I need to switch from local user to root user in a shell script. I need to make it automated so that it doesn't prompt for the root password. I heard the su command will do that work but it prompt for the password. and also can someone tell me whether su command spawns a new shell or... (1 Reply)
Discussion started by: Little
1 Replies

2. UNIX for Dummies Questions & Answers

Switching from root to normal user takes me to user's home dir

Whenever i switch from root to another user, by doing su - user, it takes me to home directory of user. This is very annoying as i want to be in same dir to run different commands as root sometimes and sometimes as normal user. How to fix this? (1 Reply)
Discussion started by: syncmaster
1 Replies

3. Shell Programming and Scripting

How to give root access to non root user?

Currently in my system Red Hat is installed. And Many user connect to my machine via SSH Techia Terminal. I want to give some users a root level access. Can anyone please help me how to make it possible. I too searched on the Google but didn't find the correct way Regards ADI (4 Replies)
Discussion started by: adisky123
4 Replies

4. UNIX for Advanced & Expert Users

Root and non-root user not able to delete the file

Hi!! one strange problem occurred with my RHEL 5 box. i'm having logs folder with ownership of non-root user. Created some files with root user under logs folder. here is the scene: -rw-r----- 1 root root 1048227 Feb 28 12:34 SystemOut_13.02.28_12.34.10.log -rw-r----- 1 root root ... (6 Replies)
Discussion started by: sukhdip
6 Replies

5. UNIX for Dummies Questions & Answers

Sudo to delegate permission from non-root user to another non-root user

I've been through many threads before i decide to create a separate thread. I can't really find the solution to my (simple) problem. Here's what I'm trying to achieve: As "canar" user I want to run a command, let's say "/opt/ocaml/bin/ocaml" as "duck" user. The only to achieve this is to... (1 Reply)
Discussion started by: canar
1 Replies

6. Shell Programming and Scripting

Urgent Help...Pseudo-Device provides a Backdoor Entry to root.

Can Anybody help to create a pseudo-device and write a device driver for it. The pseudo-device provides a “backdoor” for gaining root access for a particular user. Instead of compiling the device driver into the kernel. Modules are object binaries that can be dynamically loaded into the kernel. ... (1 Reply)
Discussion started by: nyjilgeorge1
1 Replies

7. UNIX for Dummies Questions & Answers

How to allow access to some commands having root privleges to be run bu non root user

hi i am new to unix and i have abig task. i have to \run particular commands having root privileges from a non root user. i know sudo is one of the way but i need sum other approach kindly help Thanks (5 Replies)
Discussion started by: suryashikha
5 Replies

8. Shell Programming and Scripting

root user command in shell script execute as normal user

Hi All I have written one shell script for GPRS route add is given below named GPRSRouteSet.sh URL="www.google.com" VBURL="10.5.2.211" echo "Setting route for $URL for GPRS" URL_Address=`nslookup $URL|grep Address:|grep -v "#"|awk -F " " '{print $2}'|head -1` echo "Executing ... (3 Replies)
Discussion started by: mnmonu
3 Replies

9. UNIX for Dummies Questions & Answers

URGENT, root file system is 99%

help, urgently root file is 99% hi, this iptrace causes my root file system to be 99%. iptrace writes to a file but i didn not specify any file so how? and how to reduce my root file system since i suspect that it is iptrace which causes this.? thanks (8 Replies)
Discussion started by: yls177
8 Replies

10. IP Networking

URGENT iptrace, root file system is 99%

help, urgently root file is 99% hi, this iptrace causes my root file system to be 99%. iptrace writes to a file but i didn not specify any file so how? and how to reduce my root file system since i suspect that it is iptrace which causes this.? thanks (1 Reply)
Discussion started by: yls177
1 Replies
Login or Register to Ask a Question