LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 08-03-2005, 06:11 PM   #1
boazg
LQ Newbie
 
Registered: Aug 2005
Posts: 3

Rep: Reputation: 0
whatever a non-root user does, he gets 'permission denied'.


as a result, user cannot login.
here's an example.

# strace su user
.
.
.

setuid32(1000) = 0
close(3) = 0
execve("/bin/sh", ["sh"], [/* 23 vars */]) = -1 EACCES (Permission denied)
open("/usr/share/locale/locale.alias", O_RDONLY) = -1 EACCES (Permission denied)
open("/usr/share/locale/en_GB/LC_MESSAGES/shadow.mo", O_RDONLY) = -1 EACCES (Permiss
ion denied)
open("/usr/share/locale/en/LC_MESSAGES/shadow.mo", O_RDONLY) = -1 EACCES (Permission
denied)
open("/usr/share/locale-langpack/en_GB/LC_MESSAGES/shadow.mo", O_RDONLY) = -1 EACCES
(Permission denied)
open("/usr/share/locale-langpack/en/LC_MESSAGES/shadow.mo", O_RDONLY) = -1 EACCES (P
ermission denied)
open("/usr/share/locale/en_US/LC_MESSAGES/shadow.mo", O_RDONLY) = -1 EACCES (Permiss
ion denied)
open("/usr/share/locale-langpack/en_US/LC_MESSAGES/shadow.mo", O_RDONLY) = -1 EACCES
(Permission denied)
write(2, "No shell\n", 9No shell
) = 9

this is true if also if i try to login as user (cant cd home, permission denied)
this is true if i write a setuid program
and so on

i have checked /etc/passwd and permissions of folders.

this is not kernel dependant and indeed is the case even if i chroot from a liveCD.

i first noticed this when i was messing with CPAN, trying to remove Tk. i dont think it has anything to do with the problem

i have fscked...
please help...
 
Old 08-04-2005, 11:05 AM   #2
Matir
Moderator
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 118Reputation: 118
odd. What groups is the user in? What do the executables in question look like? (permissions, ownership, group)
 
Old 08-05-2005, 09:17 AM   #3
boazg
LQ Newbie
 
Registered: Aug 2005
Posts: 3

Original Poster
Rep: Reputation: 0
nevremind,
it seems i chmod'ed / whithout realising it. hate script bugs..
 
  


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
Permission denied for root user shujja Linux - Newbie 9 10-28-2014 09:32 PM
Permission denied as root Cadmium Mandriva 6 10-07-2005 01:00 PM
root gets permission denied Nightfrost Debian 22 11-21-2004 06:19 AM
Permission denied as root Cynric Linux - General 4 08-15-2004 12:47 PM
Permission denied on " ls "for root user itsjvivek Linux - General 12 12-11-2002 08:02 PM


All times are GMT -5. The time now is 08:43 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration