Re: 6.5 single user mode

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On Tue, Feb 04, 2014 at 03:04:05PM -0500, Steve Clark wrote:
> Hello List,
> 
> I want to boot into single user mode and run a script automatically.
> 
> I have been looking for a couple of hours and have found one solution I don't like.
> 
> How can I get the shell that is started in single user mode to run a script. My one solution
> was to add a profile in /etc/profile.d/ that called the script. Is this the only way to do it?
> 

wild guess here:
1. make this a username that isn't used for any other purpose
2. try setting the default shell in /etc/password, for that user,
   to run the script. This may require some experimentation to find
   the correct incantation.

no clue if it'll work, haven't tried it.

good luck!


-- 
---- Fred Smith -- fredex@xxxxxxxxxxxxxxxxxxxxxx -----------------------------
  "For him who is able to keep you from falling and to present you before his 
 glorious presence without fault and with great joy--to the only God our Savior
 be glory, majesty, power and authority, through Jesus Christ our Lord, before
                     all ages, now and forevermore! Amen."
----------------------------- Jude 1:24,25 (niv) -----------------------------
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos




[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux