The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Privileges User ((Please urgent)) AIX122 AIX 6 02-25-2008 05:53 AM
switching user from root to ordinary user sasia Shell Programming and Scripting 3 01-25-2008 10:25 PM
Other than root user .Normal user is unable to create files mallesh UNIX for Advanced & Expert Users 1 06-22-2005 01:18 PM
URGENT, root file system is 99% yls177 UNIX for Dummies Questions & Answers 8 10-15-2002 10:08 PM
URGENT iptrace, root file system is 99% yls177 IP Networking 1 10-10-2002 11:52 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 09-27-2006
charbel charbel is offline
Registered User
  
 

Join Date: Feb 2006
Posts: 41
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 (permalink)  
Old 09-27-2006
hegemaro hegemaro is offline
Registered User
  
 

Join Date: Feb 2006
Location: Schenectady, NY
Posts: 134
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 (permalink)  
Old 09-27-2006
Corona688 Corona688 is offline
Registered User
  
 

Join Date: Aug 2005
Location: Saskatchewan
Posts: 1,969
You can create multiple users with the same uid? What effects does this have?
  #4 (permalink)  
Old 09-27-2006
hegemaro hegemaro is offline
Registered User
  
 

Join Date: Feb 2006
Location: Schenectady, NY
Posts: 134
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?
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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




All times are GMT -4. The time now is 08:15 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0