su user -c problem

Gene Heskett gene.heskett at verizon.net
Tue Jan 8 02:13:50 UTC 2008


On Monday 07 January 2008, Gene Heskett wrote:
>On Monday 07 January 2008, Davide Bolcioni wrote:
>>On Monday 07 January 2008 05:23:20 pm Gene Heskett wrote:
>>> I boot and login at runlevel 3, the everything but X, then run startx by
>>> hand. I'm a big dummy maybe, and an old fart, but *I* can run it by using
>>> the S99local link exactly the same as it real name, so why doesn't init
>>> run it?
>>
>>I had something similar happen to me some time in the past, say about
>> Fedora Core 3, and my init script was hanging (I could see it with pstree)
>> asking for user input. I would pepper the script with
>>
>>  echo $$ so far so good >> /tmp/cursed-initscript.log
>
>And would you believe, it all worked on this reboot.  I think I'll go shoot
>the neighbors worthless tomcat.  This is frustrating, it failed absolutely
> on the last 3 reboots.
>
>I put that echo in S98wine, S99anacron, S99 firstboot and S99local, and
> while init is still visible in a pstree output, that file looks like this:
>
>2563 so far so good, start of wine
>2563 so far so good, end of wine startup
>2571 so far so good, start of anacron
>2571 so far so good, end of anacron
>2581 so far so good, start of firstboot
>2581 so far so good, firstboot should exit here
>2588 so far so good, start of rc.local
>
>>to see if it is started at all and then hangs or exits somewhere.
>>
>>Davide Bolcioni

And a PS to the PS if you will.  That boot above had an selinux=0 on the grub 
kernel line that I had forgot adding earlier this day.  I obviously have a 
bad case of CRS.  So I took it out and rebooted again.  Of course it had to 
relabel everything, but this time S99local ran just fine including getting 
fetchmail started.  Repeatable?  Damnifiknow.

Thanks for the hints though, that might come in handy yet.  Humm, I should 
take the double >> back to a single > for the first one, else that file will 
get pretty big in a few years. :)

-- 
Cheers, Gene
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Fortune and love befriend the bold.
		-- Ovid




More information about the fedora-selinux-list mailing list