LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 09-23-2003, 11:25 AM   #1
dtheorem
Member
 
Registered: Sep 2003
Location: Winnipeg, MB, CA
Distribution: LinuxMint
Posts: 101

Rep: Reputation: 15
Lightbulb I was wondering.....


Is there any way to set up a user as root without actually being "root" in Mandrake 9.1. What I want is to continue using my user account, but have permissions to read/write every directory on my hard drive without becoming root in a terminal or running a file manager in superuser mode. Does anyone else ever think about this?
 
Old 09-23-2003, 12:05 PM   #2
Caeda
Senior Member
 
Registered: Jul 2003
Location: Indiana
Distribution: Suse 6.0+, Mandrake 5.0-10.0, Redhat 6.0-9.0, Gentoo 1.2+, Gnoppix, Knoppix, Sabayon, Ubuntu 5.04+
Posts: 1,811

Rep: Reputation: 45
Yes, yo0u can set up a user to be root privilaged without loggin in as root. But no, you do not, EVER, do this.

This would make your system as backwards, insecure, and stupid, as a windows system is, allowing anyone who hacks in or sits down to do anything and everything they want.

If you need privelages when installing a program or such, open a terminal window.

xhost + localhost
su
root password
install software
close window to close off the root access to your files.
 
Old 09-23-2003, 12:21 PM   #3
dtheorem
Member
 
Registered: Sep 2003
Location: Winnipeg, MB, CA
Distribution: LinuxMint
Posts: 101

Original Poster
Rep: Reputation: 15
All right, you said it was possible. Can you tell me how. Here's the thing: No one uses my computer except for me. Everyone I know hates linux and won't get within 2 meters of it, so there's no danger of anyone else messing around with it. I already login to root through a terminal for everything anyway, I just want to do it automatically. Besides the more you break it the more you learn it.
 
Old 09-23-2003, 12:27 PM   #4
BigDaddy
Member
 
Registered: Sep 2003
Posts: 77

Rep: Reputation: 15
Quote:
Originally posted by dtheorem
All right, you said it was possible. Can you tell me how. Here's the thing: No one uses my computer except for me. Everyone I know hates linux and won't get within 2 meters of it, so there's no danger of anyone else messing around with it. I already login to root through a terminal for everything anyway, I just want to do it automatically. Besides the more you break it the more you learn it.
The same for me! So how can it be done?
 
Old 09-23-2003, 12:50 PM   #5
speter
Member
 
Registered: Sep 2003
Location: Edison, NJ
Distribution: Fedora, Mac OS X
Posts: 313

Rep: Reputation: 30
Quote:
Originally posted by dtheorem
Besides the more you break it the more you learn it.
Your doctor must be very rich!

Seriously, if you run everything as root, you will become very good at reinstalling the entire system because as root you can easily remove or screw up essential files. You will not get a warning; you'll just be hosed. Security is but one part of why you don't want to be root all the time.

Steve
 
Old 09-23-2003, 06:46 PM   #6
Caeda
Senior Member
 
Registered: Jul 2003
Location: Indiana
Distribution: Suse 6.0+, Mandrake 5.0-10.0, Redhat 6.0-9.0, Gentoo 1.2+, Gnoppix, Knoppix, Sabayon, Ubuntu 5.04+
Posts: 1,811

Rep: Reputation: 45
Yes, its possible, and its easy to set.
I will not give information on changing it though, nor should anyone else in this matter, as "DONT DO IT"

Its not something that should ever start to become popular in linux, if you need access that bad, go change the file permissons on a few, but not all, of the folders you need, and never change the /root/ or /bin/ or anything important, just subfolders.
 
Old 09-23-2003, 06:52 PM   #7
Thymox
Senior Member
 
Registered: Apr 2001
Location: Plymouth, England.
Distribution: Mostly Debian based systems
Posts: 4,368

Rep: Reputation: 64
Can I just take this opportunity to ask why you want root access all the time? And, if your intention is to create a user that has all of roots permissions, why not just log in as root and be done with it?
 
Old 09-24-2003, 01:07 AM   #8
dtheorem
Member
 
Registered: Sep 2003
Location: Winnipeg, MB, CA
Distribution: LinuxMint
Posts: 101

Original Poster
Rep: Reputation: 15
Angry

You won't tell me, eh? What does it matter, though. I want to be a user that has universal access to my computer. It is *my* computer after all. And yes, I've become quite adept at reinstalling my system. I've been breaking computers for years: it's how I learn. The reason I don't log in as root is because I get messages telling me I *shouldn't* be logged in as root. It's annoying. Plus, I get no sound when I log in as root. Why should I be forced to sacrifice the functionality of my system just to have access to *my* folders. It doesn't make sense. I can understand in the traditional sense why you wouldn't dream of doing this for users of a system, but come on! We're moving into a new era, people! I run linux on my computer down in my basement. I want privileged access. I *will* get privileged access.
 
Old 09-24-2003, 07:31 AM   #9
BigDaddy
Member
 
Registered: Sep 2003
Posts: 77

Rep: Reputation: 15
U just have to CHMOD the entire /
As root U can even do it in GUI! But then again just login as root and U have all the access!
 
Old 09-24-2003, 10:01 AM   #10
courtrrb
Member
 
Registered: Sep 2003
Location: Iowa, US
Distribution: MDK Since V6.5
Posts: 573

Rep: Reputation: 30
Theirs a much safer way to do this. Add your name to the roots group permision. You will have access but nobody else will.
 
Old 09-24-2003, 11:29 AM   #11
dtheorem
Member
 
Registered: Sep 2003
Location: Winnipeg, MB, CA
Distribution: LinuxMint
Posts: 101

Original Poster
Rep: Reputation: 15
Thankyou.
 
Old 09-24-2003, 11:44 AM   #12
tcaptain
LQ Addict
 
Registered: Jul 2002
Location: Montreal
Distribution: Gentoo 2004 from stage 1 baby!
Posts: 1,403

Rep: Reputation: 45
Remember one thing. If you're running as root or with root-like privilege on a network attached to the net...if you get hacked (ie: "rooted") the attacker (or worm) will have the privileges of the user he compromises (ie: You...root). Running as user offers many security advantages and stops no one from "learning" linux.

And using 'su' and 'sudo' you can do almost all (with very very few exceptions if any) things you could do as root, only a lot more secure.
 
Old 09-25-2003, 05:33 PM   #13
Caeda
Senior Member
 
Registered: Jul 2003
Location: Indiana
Distribution: Suse 6.0+, Mandrake 5.0-10.0, Redhat 6.0-9.0, Gentoo 1.2+, Gnoppix, Knoppix, Sabayon, Ubuntu 5.04+
Posts: 1,811

Rep: Reputation: 45
Quote
*Why should I be forced to sacrifice the functionality of my system just to have access to *my* folders. It doesn't make sense. *

Why should the rest of have to put up with people like you, who leave your computer wide open to everyone and everything on the internet, just like windows, so we gotta deal with your stupid viruses, spam, and every bit of CRAP that comes out, all because you couldnt deal with a perfectly normal and resonable restriction?

Fine, run it as root, but keep the DAMN thing offline for the sake of the rest of us who dont want to put up with linux becoming the FPOS that windows is.
 
Old 09-25-2003, 05:49 PM   #14
Thymox
Senior Member
 
Registered: Apr 2001
Location: Plymouth, England.
Distribution: Mostly Debian based systems
Posts: 4,368

Rep: Reputation: 64
Easy tiger!

We have already established that dtheorem is adept at re-installing Linux. So, let it be!

A word of advice for you, dtheorem, do not use the command rm -rf / under any circumstances when running as root! I hope you can guess what it does. I would seriously reconsider your actions, though. For the sake of typing in 1 extra line every now and then, you can save yourself lots of hassle!
 
Old 09-26-2003, 08:47 AM   #15
tcaptain
LQ Addict
 
Registered: Jul 2002
Location: Montreal
Distribution: Gentoo 2004 from stage 1 baby!
Posts: 1,403

Rep: Reputation: 45
Quote:
Originally posted by Thymox
Easy tiger!

We have already established that dtheorem is adept at re-installing Linux. So, let it be!
Not to be argumentative but I would only "Let it be" if dtheorem promised that his system would never touch a modem or LAN attached to the net.

If you surf the net, like it or not you have the RESPONSIBILITY to make sure to the best of your abilities that your system isn't going to be used to trash or hinder other systems. Period. I think because most people use Windows and blame M$ for all the security exploits people forget that NO networked system is uncrackable and that steps need to be taken to protect them.

If dtheorem wants to be willfully stupid that's his right (personally I don't see how running as user limits him in any way unless you really don't want to learn...but I don't know everything so maybe he WILL learn something I don't know.). I say willfully stupid because people who responded to this thread have put forth EXCELLENT reasons why it is unsafe to do what he wants to do...as opposed to ignorant as in "I didn't know".

Don't take this as a flame against dtheorem, he wants to play and break his system to learn and that's ABSOLUTELY great...I heartily agree with the goal he's going for (I question his methods, but that's a different thing)...however, he is NOW aware of the consequences of his actions and *hopefully* his responsabilities.

dtheorem: If you want to run as root and learn go for it. Just do the net a favor and unhook your modem/cablemodem before you do.
 
  


Reply



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
Was Wondering? WMCrazyOne Linux - General 5 12-19-2003 10:23 PM
Just wondering wr3ck3d Linux - Software 3 05-01-2003 05:58 PM
I was just wondering... cclavey *BSD 7 04-17-2003 05:44 PM
I was wondering... newbieME Linux - General 11 03-22-2003 12:40 PM
I was wondering something... Touma Linux - General 1 03-30-2001 01:54 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

All times are GMT -5. The time now is 04:17 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
Open Source Consulting | Domain Registration