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.
Distribution: RedHat (RHEL, FC, CentOS), openSuSE, Mac OS X
useradd <username> -m -g root
so if you wanted to make the user marco superuser, by creating a new account:
root@laptix:/home/chakkerz# useradd marco -m -g root
root@laptix:/home/chakkerz# passwd marco
Changing password for marco
Enter the new password (minimum of 5, maximum of 127 characters)
Please use a combination of upper and lower case letters and numbers.
Re-enter new password:
which i confirmed against kuser, to check marco was a root user, which he is (Making marco, sitting over there, quote "exellent!")
Adding a user to the root group is not sufficient to give them superuser priviliges. Any user with a user ID of 0 is a superuser. Also, it's a really bad idea to log in as the superuser via telnet (because passwords are transmitted in the clear. You should use ssh and disable telnet altogether. Ssh can easily be configured to allow root to log in.
in fact,my new account can't execute any command even the "unzip",it only can "cd" or "ls",even i put the program out of the root directory,it still don't work.
what i need is a valid account that is used to remotely telnet to my linux server and execute the administrating task the root can do.how?
If a normal user account can't execute unzip, that means the permissions got wonky on the unzip executable. Can your normal user account unzip files?
About ssh -- it is just like telnet, only traffic is encrypted before being sent out, making things much more secure. It should come with your distribution. With any luck, it may be running already -- do "ps aux | grep sshd" -- if anything is printed out sshd is running. If not, you'll need to install it using your distro's package manager. On Red Hat systems at least, the packages to install were all those beginning with openssh, particularly openssh-server. Once you have them installed, do "service sshd start" (again this assumes a Red Hat based distro). Then you can ssh in. A good Windows ssh client is PuTTY, located AT http://www.chiark.greenend.org.uk/~sgtatham/putty/ .
Also, you can allow root to telnet in, just add /dev/pts/0 to /etc/securetty and root will be allowed to telnet in on the pts/0 terminal. Again, as I said before this is very unsafe and if you do this over any sort of untrusted network (any network used by other people) you will quite possibly find your box broken into. This is because telnet transmits password in the clear -- you are potentially*sending your password to everyone on the network. Ssh encrypts the traffic so this is not a problem.
* depending on the exact details of how the network is configured.
Do you have access to "/usr/bin", for example?
can you excecute "/usr/bin/unzip"?
If you can, try typing "$PATH".
Maybe that'll give some info.
Another possibility is using "sudo", it's a pretty nice, and secure program. It lets you running programs, AS THOUGH your normal user is root.
Look at this page for more info: http://www.courtesan.com/sudo/
Or try "man sudo".
I've been following this thread and trying to do pretty much the same. I was trying to install Firefox last night but I kept getting a "error 624 cannot create directory". I presumed it was because I wasn't root, so I went to terminal, su'd and installed from there. The whole process took me an hour to work out.
I remember when I installed redhat a few years back I could create a semi-root user that would allow me to do all the stuff root can do but without actually having all the permissions. It didn't involve sudo at all.
Can anyone suggest a way to do this, was it FSTAB? Or maybe it was literally add a new user and add to root group.