Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 08-20-2009, 11:27 AM   #1
Senior Member
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora
Posts: 2,630

Rep: Reputation: 495Reputation: 495Reputation: 495Reputation: 495Reputation: 495
how can root be "permission denied"?

root@server) 9 /home/user # ./folding stop
./folding: Permission denied.
Exit 1
someone please explain this? all im trying to do is stop F@H long enough to run the setup again to move the app to the proper team.
Old 08-20-2009, 11:34 AM   #2
Registered: Sep 2007
Location: Kerala, India
Distribution: ubuntu 10.04
Posts: 367

Rep: Reputation: 55
is it made executable??else
chmod u+x folding
Old 08-20-2009, 11:39 AM   #3
LQ Guru
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551
or do:

shell$ sh folding stop

but mobinskariya is correct; the file is likely not executable.

Old 08-20-2009, 12:00 PM   #4
Senior Member
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora
Posts: 2,630

Original Poster
Rep: Reputation: 495Reputation: 495Reputation: 495Reputation: 495Reputation: 495
it is marked as executable, that was my concern. oh well dumped that directory, moved it and installed it under an other user seems to be working better. still pissy that root could not do its job.
Old 08-20-2009, 12:03 PM   #5
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.3, Oracle Linux, Mint
Posts: 9,724

Rep: Reputation: 434Reputation: 434Reputation: 434Reputation: 434Reputation: 434
Might be /home/user was nfs mounted. "root" usually become "nobody" in that case which might explain the issue.

Last edited by jlliagre; 08-20-2009 at 05:39 PM. Reason: typo
Old 08-20-2009, 02:23 PM   #6
Senior Member
Registered: Jul 2004
Distribution: Ubuntu 7.04
Posts: 1,991

Rep: Reputation: 76
There are several ways a file can be executable but you may not have permission to execute it:

* The filesystem may be mounted with the noexec flag (run "mount" to check this)
* for shell scripts, you need read permission as well as execute permission ("ls -l")
* for shell scripts, you need execute permissions on the shell executable
* for set-uid programs, the user of the program needs read permissions on all parent directories in the tree (I think, possibly read permission as well)
* A security layer such as SELinux may be preventing you from executing the script (usually logged in /var/log/secure)

Off the top of my head, that's all I can think of, but there may be more.

The root user isn't special in terms of file permissions. It skip some checks in system calls I think, but file checks still need to be set up correctly.

Hope that helps,

Robert J Lee
Old 08-20-2009, 08:02 PM   #7
LQ Guru
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.9, Centos 7.3
Posts: 17,417

Rep: Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397
I guess you could set an ACL for root on that file that has the same effect ie

setfacl u:root:rw <somefile>

but I've never tried it.
An exercise for the reader perhaps ...


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
Logging in as root get "/bin/bash: Permission denied" MikeyCarter Linux - Software 16 07-24-2014 03:20 PM
Permission Denied when trying as "root" to edit xorg.conf d3g@ Linux - Newbie 4 09-07-2006 06:19 PM
Only root hears sounds, alsa gives "permission denied" Baix Linux - General 4 07-02-2005 02:30 PM
Permission denied on " ls "for root user itsjvivek Linux - General 12 12-11-2002 08:02 PM
ls in /tmp produces "permission denied" even as root kpfeiffer Linux - Newbie 5 10-06-2002 01:40 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:49 AM.

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