Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 28th August 2006, 03:54 PM
coleman Offline
Registered User
 
Join Date: Aug 2006
Posts: 2
init.d - rc.local permission denied

I have two identical machines, both running fedora core 4.
Plain installs, no kernel mods, generic.

I'm trying to run a user script from either init.d or rc.local.
The original machine, works fine, no errors.

My new machine gives me: "su: /bin/bash: permission denied" when booting up.
However, I can run the ./rc.local script as root and it works fine, doesn't work on boot up.
I tried to add another user and run a script in its home area, also get the same error.
I've checked all the permissions on the /home, /home/user directories, all are 755 or so.
I've checked all the permissions on /etc and it's child directories, all 755.
Again, works when I manually run it, doesn't work on boot up.

Basically the line looks like:
su - user -c '/home/user/dosomescript.sh'
Reply With Quote
  #2  
Old 28th August 2006, 06:01 PM
coleman Offline
Registered User
 
Join Date: Aug 2006
Posts: 2
Well, after two days of waiding through google pages I've finally got something to work.
instead of using: su - user -c "xxxx"
use: runuser -s /bin/bash - user -c "xxxx", this seems to work, not sure why it needs to be different than my other machine, at least I can move on...
Reply With Quote
Reply

Tags
denied, initd, permission, rclocal

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Starting sshd: /etc/init.d/sshd: line 113: /usr/sbin/sshd: Permission denied sumanc Using Fedora 9 28th March 2008 06:37 AM
exec of init failed!!!: permission denied homey43 Using Fedora 2 15th August 2007 02:02 PM
Permission Denied kushboy Using Fedora 3 9th August 2004 05:27 AM
permission denied brostu Installation and Live Media 3 25th July 2004 10:51 AM


Current GMT-time: 08:05 (Sunday, 26-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat