LinuxQuestions.org
Review your favorite Linux distribution.
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 10-20-2007, 02:50 PM   #1
neomoha
LQ Newbie
 
Registered: Oct 2007
Posts: 1

Rep: Reputation: 0
Both 'sudoers file in mode 640 instead of 440' and 'su authentication failure'


Hi everyone,
I've got a little problem while managing users' permissions in my computer.
I decided to give sudoer permissions to my user for /media/ directory, So I had to enter as a sudoer:

Code:
sudo su
chmod +w /etc/sudoers
After that I closed the root session and then tried to access /media/mydisk/ -> result: denied.

The issue comes now: when I tried to access /media/mydisk/ in sudo mode, I got the following message:

Code:
sudo: /etc/sudoers is mode 0640, should be 0440
Great !! :-( , the only solution that came to my mind is to enter as su and change the /etc/sudoers file's permissions, but:

Code:
su -
and ...

Code:
Password:
su: Authentication failure
Sorry.
My sudo pass is the same as my user pass, but the su has another, I can't remember entering a different pass for 'su', so maybe I'm in a trouble.

What do u think!!
I will really appreciate any help.
Thanks.
 
Old 10-20-2007, 04:27 PM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
For the su command, use the root password. /etc/sudoers should have 0440 permissions.

Quote:
sudo su
chmod +w /etc/sudoers
Use sudo like "sudo chmod +w <file>".
For some commands that are in root's path but not a normal users, you need to include the full path, as in "sudo /sbin/modprobe ntfs-3g"
 
  


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
Sudoers File Help Harlin Linux - Software 1 03-15-2006 04:16 PM
/etc/sudoers is mode 0600, should be 0440 ?? echo_max Linux - Security 2 03-08-2006 09:15 PM
I deleted /etc/sudoers and creates a new file call sudoers but now it doesnt for visu abefroman Linux - Software 1 11-10-2005 05:03 PM
sudoers file cactus-bob Linux - Newbie 2 03-11-2004 11:24 AM
help with sudoers file ogden2k Linux - Security 4 03-11-2003 10:39 AM

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

All times are GMT -5. The time now is 08:17 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