LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 04-05-2006, 06:44 AM   #1
dhammika
Member
 
Registered: Dec 2003
Location: Colombo. (Sri Lanka)
Distribution: RH 9, RH AS 3, Fedora Core
Posts: 65

Rep: Reputation: 15
Non root user to View \etc\shadow


Hi

Question is how to give authority to view copy \etc\shadow file. I create user with userconf and give each and every authority but still unable to view \etc\shadow

Any one ??
 
Old 04-05-2006, 07:05 AM   #2
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
You absolutley do not want to do this.

If you have more than one administrator, but do not want them to have superuser acces to everything, then you need sudo. Set the user in sudoers so that they have su access for viewing the /etc/shadow file and nothing else.

Code:
[~]$ less /etc/shadow
/etc/shadow: Permission denied
[~]$ sudo less /etc/shadow
Password:
[less output deleted]
[~]$
 
Old 04-05-2006, 08:05 AM   #3
dhammika
Member
 
Registered: Dec 2003
Location: Colombo. (Sri Lanka)
Distribution: RH 9, RH AS 3, Fedora Core
Posts: 65

Original Poster
Rep: Reputation: 15
thanks simon it works fine ...
 
Old 04-05-2006, 11:06 PM   #4
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
no problem.

remember: the fewer admins you have the better the security (and more work for the few admins of course). You absolutely want to restruct access to the passwords files.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
authentication user by /etc/shadow Thomas23 Linux - Security 2 05-22-2004 11:52 AM
User Migration: how do you move /etc/shadow? groovin Linux - General 4 04-13-2004 12:26 PM
can i view user accounts with root? guggenheim Linux - General 2 03-17-2004 06:35 PM
Hi, How to view user and root run command on linux? dEMax Linux - General 1 09-12-2003 05:22 AM
/etc/shadow in user authentication katana Linux - General 3 06-25-2001 12:02 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 01:33 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration