Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
I have been using Fedora and just got an opportunity to use Ubuntu.
For Fedora, I can just sudo, then can continue working as root without re-sudo.
However, for Ubutuntu, I have to use sudo every time I want to perform task as the root. If the task is short, it will not ask for the password. It becomes problem when I wrote scripts that each task take a long time to complete. The second task will not continue unless I enter the root password again. Is there a way to skip entering the root password?
Here is example of my script:
# each disk is 1 TB. so it takes a long time to finish.
sudo mkfs -t ext3 /dev/sdb1
sudo mkfs -t ext /dev/sdc1
Try using this command,
Sudo passwd passwordhere
then enable the root account to be able to log on from the log on screen,
thats the only thing i could think of> Enabling the root account or making a Database with variables to import the sudo variables after typing it once. (Witch im not sure is even possible)
However, for Ubutuntu, I have to use sudo every time I want to perform task as the root.
This is the very purpose to minimize running an entire session as root. Unix experience teaches that root account should only be used for essential system works.
If the task is short, it will not ask for the password.
Ubuntu and similar flavors default at 15 minutes, then the sudo root expires, after this short period sudo is again required.
It becomes problem when I wrote scripts that each task take a long time to complete. The second task will not continue unless I enter the root password again. Is there a way to skip entering the root password?
Use gksudo within your script, or if you are sure script is safe run it as being owned by root. Since we do not understand what your script is doing we cannot say any further help other than general concepts.
Being old school in Ubuntu i sudo to root once and set a root password then su - when i need root(which is the majority of the time). Keep in mind that over the 11 years i have been a Unix/Linux Systems Admin i have conditioned myself to work in the root shell acutely aware of the power of root at all times.
Me too. I have a launcher on the panel that runs
gnome-terminal --window-with-profile=MyRootGTProfile --geometry=1028x768+0+0 -x su -
It is one of the most heavily used panel launchers.