1830043 Members
17947 Online
109998 Solutions
New Discussion

Restricted Sam

 
Mehmood Ansari
Frequent Advisor

Restricted Sam

Hi

Some one can help me, through the operator menu, I created restricted sam to reboot the system. Command line I used /sbin/shutdown -r now. It is not working masage says that
[ Shutdown cannot be run from a mounted file system -- exiting shutdown
Change directories to the root volume ("/" will work) and try again.

Press to continue sam...

Some one can help out
Thanks
5 REPLIES 5
Robert-Jan Goossens
Honored Contributor

Re: Restricted Sam

Hi,

I do not use sam -r, but you could try to cd to / before you start sam.

There is /etc/shutdown.allow file, if you add the name of the user, he can shutdown -r now from the command line.

Robert-Jan
Sanjay Kumar Suri
Honored Contributor

Re: Restricted Sam

You seems to running command when cetain files systems are mounted and being used.

Just go to root file system and ensure that files system are not in use and run the command again.

sks
A rigid mind is very sure, but often wrong. A flexible mind is generally unsure, but often right.
Jose Mosquera
Honored Contributor

Re: Restricted Sam

Hi,

You must ensure be into root File System before excute shutdown command. Try creating a test user with a home dir placed into root FS. Remember add this user into shutdown.allow file.

Rgds.

KapilRaj
Honored Contributor

Re: Restricted Sam

cd /
shutdown -r

Kaps
Nothing is impossible
Geoff Wild
Honored Contributor

Re: Restricted Sam

As others have said - cd / :

cd / ; sbin/shutdown -r now

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.