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!
Notices
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
You can use "su -" so that you can use root's .bashrc, .profile etc which will give you full admin rights.
su by itself will give you root privliges but will not setup your environment variables as they would when you log in as root.
If this is a pain to type then you could set an alias i.e "s = su -"
typing su was never the problem... LOL it only 2 letters for crying out loud....
cmon guys i know you dont think im that lazy....
the reason i dont type su is because of I've encountered many programs that just for one reason or another didnt not believe i was had root access or enough rights. when i typed in su before compilation. Also environment variables get very picky and lot of other issues that i dont feel like listing
however i understand what you are all saying , but they way i see it one can still dork up there system to a point where advantage of having multiple users becomes nonexistant anymore. I know this one guy who had 3 users and root, and he dorked up his installation by trying to force upgrade glib. He was unable to login as anyname again after restarting.
I guess until i dork up my system i will still have my Windows XP mentality.
Last edited by Kilahchris; 09-06-2004 at 11:40 PM.
Originally posted by Kilahchris
I used to have several user names and when i typed su in the terminal i still didnt have full administrative rights as i would have it i was logged in as root
and i appreciate the help, and I thank Dave for his advice.... it kinda of annoying and repetitive to point out the same argument.
As tim1235 pointed out, "su -" does the trick because
with "su" you inherit the original users environment,
thus don't get the paths to sbin directories.
Quote:
and on a final note... it is still possible to dork up your system as another user in such a way where if you log back in as root there is no way to fix it or even login as root.
That may vary with distro, but I'm certain that you couldn't
harm my slack-installations ... setting fire or other physical
damage as a local user aside.
It is possible that in Slackware it is fireproof
I never used or tried Slackware but in Suse its possible. I have a friend that forced glib upgrade on wipeing out and overwriting many files the old glib had installed onto his system. After restarting gnome could never log him in as root or any of the 3 users he created prior to his dorking it up. Because many programs complained about the broken dependancies that were now a result of what he did. He basically had to reinstall gnome and the glib that came with the distro.
Last edited by Kilahchris; 09-06-2004 at 11:47 PM.
Originally posted by Kilahchris I used to have several user names and when i typed su in the terminal i still didnt have full administrative rights as i would have it i was logged in as root
and i appreciate the help, and I thank Dave for his advice.... it kinda of annoying and repetitive to point out the same argument.
Im aware of the script kiddie out there, However I am behind a strict and tough cisco firewall
and i have several up to date antivirus software on my computer. It is not laziness it is more i dont see the need to type su when it still doesnt grant me enough user rights at times to accomplish things im striving to do....
and on a final note... it is still possible to dork up your system as another user in such a way where if you log back in as root there is no way to fix it or even login as root.
Just so you know, if you ever did decide to use su.... Typing the full or even relative pathname to programs like su is imperative in order to maintain common secuity practices. Someone could slip a tainted binary in your path so therefore type /bin/su just to be in the semi-safe side.
"Strict and tough cisco firewall" ehh? Yeah and I'll bet your still running X11 port, root at that! Better add the -nolisten option to startx before browse the web bud.
Xinetd starts services like inetd does. It has a config file and what you don't want started up you could edit acordingly. Just add # in front of any services you dont use in the conf file.
Many things in linux listen for connections, it could be tcp or plain out unix domain sockets. Any unecessary servers should be disabled, unless you use them. "netstat" passed with the right options is a great way to keep track of what's listening.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.