LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 09-07-2004, 12:26 AM   #16
tim1235
Member
 
Registered: Aug 2004
Location: Melbourne, Australia
Distribution: fc5/Gentoo
Posts: 57

Rep: Reputation: 15

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 -"
 
Old 09-07-2004, 12:35 AM   #17
Kilahchris
Member
 
Registered: Jan 2003
Location: NY
Distribution: Suse 9.0
Posts: 202

Original Poster
Rep: Reputation: 30
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-07-2004 at 12:40 AM.
 
Old 09-07-2004, 12:36 AM   #18
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Quote:
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.


Cheers,
Tink
 
Old 09-07-2004, 12:44 AM   #19
Kilahchris
Member
 
Registered: Jan 2003
Location: NY
Distribution: Suse 9.0
Posts: 202

Original Poster
Rep: Reputation: 30
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-07-2004 at 12:47 AM.
 
Old 09-07-2004, 12:57 AM   #20
jev-bird
Member
 
Registered: Jul 2004
Location: USofA
Distribution: Whatever runs accordingly.
Posts: 200

Rep: Reputation: 30
Quote:
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.
 
Old 09-07-2004, 01:02 AM   #21
Kilahchris
Member
 
Registered: Jan 2003
Location: NY
Distribution: Suse 9.0
Posts: 202

Original Poster
Rep: Reputation: 30
Quote:
Yeah and I'll bet your still running X11 port
is that an known expoit of the x11 ????? x11 port??


im just curious, is it an exploit coming inbound from the web or something hackers can do manipulate once there on your lan????
 
Old 09-07-2004, 01:11 AM   #22
jev-bird
Member
 
Registered: Jul 2004
Location: USofA
Distribution: Whatever runs accordingly.
Posts: 200

Rep: Reputation: 30
Quote:
Originally posted by Kilahchris
is that an known expoit of the x11 ????? x11 port??


im just curious, is it an exploit coming inbound from the web or something hackers can do manipulate once there on your lan????
Let's just say it's not wise for your X server to be listening for connections unless you know what your doing configuration wise.

Add "-nolisten tcp" to your /usr/X11R6/bin/startx script under 'default server arg'.
 
Old 09-07-2004, 01:18 AM   #23
Kilahchris
Member
 
Registered: Jan 2003
Location: NY
Distribution: Suse 9.0
Posts: 202

Original Poster
Rep: Reputation: 30
im actually learning something now


I thought xinetd was what listening for connecitions???


and X server was more related to recieveing instructions from libraries and code that tell it how to display to stuff on screen?

Last edited by Kilahchris; 09-07-2004 at 01:19 AM.
 
Old 09-07-2004, 01:23 AM   #24
jev-bird
Member
 
Registered: Jul 2004
Location: USofA
Distribution: Whatever runs accordingly.
Posts: 200

Rep: Reputation: 30
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
what does etc stand for? aru_04 Linux - General 22 06-24-2012 10:00 AM
Choose Linux stand in internet Cafe, is it good idea? and why? Khmer Linux - General 2 08-26-2005 04:12 AM
CDMA Stand Alone Modem For Linux xyzxyz Linux - Wireless Networking 1 03-07-2005 02:19 AM
Stand By? driftingremains Linux - General 3 01-11-2004 12:46 PM
what does rc.d stand for? german Linux - General 4 11-13-2003 08:55 AM


All times are GMT -5. The time now is 01:00 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration