Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 08-03-2005, 05:11 PM   #1
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/", O_RDONLY) = -1 EACCES (Permiss
ion denied)
open("/usr/share/locale/en/LC_MESSAGES/", O_RDONLY) = -1 EACCES (Permission
open("/usr/share/locale-langpack/en_GB/LC_MESSAGES/", O_RDONLY) = -1 EACCES
(Permission denied)
open("/usr/share/locale-langpack/en/LC_MESSAGES/", O_RDONLY) = -1 EACCES (P
ermission denied)
open("/usr/share/locale/en_US/LC_MESSAGES/", O_RDONLY) = -1 EACCES (Permiss
ion denied)
open("/usr/share/locale-langpack/en_US/LC_MESSAGES/", 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, 10:05 AM   #2
LQ Guru
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

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

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


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

All times are GMT -5. The time now is 01:02 PM.

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