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 03-21-2008, 05:04 AM   #16
Ankit Sharma
LQ Newbie
Registered: May 2007
Posts: 10

Original Poster
Rep: Reputation: 0

Hello guys

Sorry but when i use the command

chroot /mnt/sysimage

after mounting under /mnt/sysimage
it says

chroot: cannot run command `/bin/sh' : Permission Denied

Also when i do

rpm ...... --setperms 'X'

it says

--setperms: Unknown Option

When i tried for

cd ....... | /bin/sh

it din't give any error but when i restarted my
again the same Kernel Panic ....

What do you mean by

"And FCOL don't fsck with chmod *twice* if you fscked it up the first time. "

Please help, I do not know any of this.

Thanks in advance.
Old 03-21-2008, 05:16 AM   #17
LQ Guru
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 677Reputation: 677Reputation: 677Reputation: 677Reputation: 677Reputation: 677
FCOL is an acronym for "For Crying Out Loud!".

After mounting /mnt/sysimage, it looks like you will need to check the permissions of /bin/sh. On my system it is a link to /bin/bash.
/bin/bash should have rwxr-xr-x permissions. Also check with the "mount" command and see how /mnt/sysimage is mounted. Is it mounted with the "noexec" option? If so that could be the problem.

If "chroot /mnt/sysimage" works, enter "/bin/bash -l" to run the .profile script setting up the PATH variable and the Environment.


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
can't execute c++ binaries, "permission denied"... even though permission is 777 SerfurJ Programming 14 02-20-2009 05:50 AM
Delete files for a particular changed date recursively? qwertyme Linux - Newbie 5 01-23-2009 11:41 AM
want to avoid 777 permission, but want to write on folder suruchiparimu Linux - Newbie 10 02-09-2006 04:25 AM
BIND 9 Permission denied when chmod is 777 o_O KasperLotus Linux - Networking 10 09-07-2005 01:20 AM
TROUBLE: MISTAKENLY CHANGED PERMISSION OF OS . how to recover mallinath Linux - Newbie 4 06-29-2005 04:21 PM > Forums > Linux Forums > Linux - Newbie

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