Go Back   TechArena Community > Software > Operating Systems
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 04-01-2011
Member
 
Join Date: Dec 2010
Posts: 16
Entering root password in script on Mint 10

From last one year I have been using Linux Mint9 operating system installed on my desktop but as soon as new version of Mint operating system was released I upgraded my operating system. After upgrading to a new operating system, I have got new tools and technique also the performance of the system has been increased. From last few days I am facing problem with my Mint 10 operating system whenever I use to delete any folder. After selecting the folder which I want to delete and by pressing the delete button from the keyboard so that the computer should shut down then it prompts a dialog box to enter the root password. I am trying the below given code in the terminal and facing problem. I need a solution so that I can troubleshoot this problem.
Reply With Quote
  #2  
Old 04-01-2011
Member
 
Join Date: Nov 2009
Posts: 681
Re: Entering root password in script on Mint 10

You can resolve the problem of entering password for shut down script by editing the /etc/sudoers file. To solve this problem you may need to follow the steps given below:
  1. First you need to take the backup. To take the backup you may need to type the command given below:
    Code:
    cd /etc
    sudo cp -v sudoers sudoers.bak
  2. We should always make use of visudo command to edit the sudoers file. The code in the sudoers file should be error free. To edit the sudoers file you may type the following command in the terminal window
    Code:
    sudo visudo
  3. You need to leave an empty line at the bottom of the sudoers file and enter your user name thus the command is given below:
    Code:
    <user name > ALL=NOPASSWD: /sbin/shutdown
  4. Then save the sudoers file and exit from it by pressing Ctrl+x command. Now you can enter the blow given command and it will start working without asking for password.
    Code:
    wipe -rf delete_folder ; sudo shutdown -h now
  5. Thus the system will shut down after deleting the desired folder.
Reply With Quote
  #3  
Old 04-01-2011
Member
 
Join Date: Dec 2010
Posts: 16
Re: Entering root password in script on Mint 10

Thanks for providing me the solution. From the above given solution I have edited the user name in the sudoers file without any password and saved it. Now the system can shut down easily thus it doesn?t prompts for the password. While using mint10 operating system sometimes I am getting ?cannot execute ?/etc/init.d/boot? error message. I tried restarting the system so that this error message could be resolved but failed. When I started the system next time after sometimes the error message appeared again and therefore I need a solution so that I can troubleshoot this problem thus the system can go a long way.
Reply With Quote
  #4  
Old 04-01-2011
Member
 
Join Date: Nov 2009
Posts: 1,269
Re: Entering root password in script on Mint 10

If you are getting ?cannot execute ?/etc/init.d/boot? error message then sometimes your booting process may be halted or many a times you may not be able to access certain data stored on the hard disk. You can solve this error message by reinstalling the system. Suppose that you are not having any backup then in that case you can use the Mint 10 Data Recovery application to solve this error. You can solve this error by running the ?fdisk? command in the terminal window. The fdisk command will detect and repair file system errors. Also you need to make sure that the partition is not mounted. If the partition is mounted then in that case also you may getting this error message. You can then resolve the error by unmounting the partition.
Reply With Quote
Reply

  TechArena Community > Software > Operating Systems
Tags: , , , , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "Entering root password in script on Mint 10"
Thread Thread Starter Forum Replies Last Post
Setting root password in Linux Mint 10 hIMAVANT Operating Systems 5 23-09-2012 11:47 AM
Allow a program to run in Standard account without entering Admin password re4m Networking & Security 1 11-10-2011 01:41 PM
Is it possible to login windows 8 automatically without entering password WinsomeK Operating Systems 3 26-09-2011 08:24 PM
How to Configure Mint 10 and policykit to use separate Root Password chyarte Operating Systems 4 14-01-2011 07:40 PM
User immediatly logs off after entering username and password David Windows XP Support 7 06-12-2007 09:46 AM


All times are GMT +5.5. The time now is 04:11 PM.