LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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


Closed Thread
  Search this Thread
Old 05-26-2004, 09:33 AM   #1
NonSumPisces
Member
 
Registered: May 2004
Location: Västerås, Sweden
Distribution: Slackware Current
Posts: 228

Rep: Reputation: 30
account with root permissions


How do I set up an account with root permissions on mandrake 10? I can't figure out how to log on as root and being able to use the gui...

/n00b
 
Old 05-26-2004, 09:46 AM   #2
hw-tph
Senior Member
 
Registered: Sep 2003
Location: Sweden
Distribution: Debian
Posts: 3,032

Rep: Reputation: 58
You shouldn't have a user account with root privileges. That's why the root account is not just an elevated user but a special account.

Why do you want root access for a regular user? If you need to admin anything, just use the su command to become root until you're done doing whatever superuser stuff it is you're doing.

If you need to extend access for a user to something you can create a new group using the groupadd command, add the user to this group and change the ownership and permissions on whatever it is you want to give access to to full access for group members.


Håkan
 
Old 05-26-2004, 09:55 AM   #3
NonSumPisces
Member
 
Registered: May 2004
Location: Västerås, Sweden
Distribution: Slackware Current
Posts: 228

Original Poster
Rep: Reputation: 30
Jag är än så länge inte en särskilt van användare av konsolen, så jag vill kunna göra en del av den vanliga filhanteringen med nautilus, men det går inte om användaren man är inloggad som inte har root-previlegier.
Är jag helt ute och cyklar?
 
Old 05-26-2004, 03:50 PM   #4
arnyswart
Member
 
Registered: Apr 2004
Posts: 34

Rep: Reputation: 15
ok

I tried group add but only got the message that group root exists.

The reason some of us want root access in Mandrake but not all the time is for doing the small things. e.g. adding a usb key so that we can transfer files. As a normal user I can add a folder to the mount directory. However I cannot edit permissions on any of my bin/bash files or edit the fstab file. The fstab file needs to be altered to be able to read my usb key.

There are a host of other reasons but being a root in the graphical format is a necessity not a whim.

Now can someone please give me a step by step on how to do it?

Arny!
 
Old 05-26-2004, 06:47 PM   #5
DropSig
Member
 
Registered: Apr 2004
Location: Saskatchewan
Distribution: Ubuntu, Centos
Posts: 208

Rep: Reputation: 30
in a terminal do
su
when your done do
exit
 
Old 05-26-2004, 07:12 PM   #6
NonSumPisces
Member
 
Registered: May 2004
Location: Västerås, Sweden
Distribution: Slackware Current
Posts: 228

Original Poster
Rep: Reputation: 30
that's not what I meant. I want to create a user account with root permissions to use in the gui, not just in the shell...
 
Old 05-26-2004, 07:24 PM   #7
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
You don't want to have root priviliges all the time, specially
NOT in a GUI.


Cheers,
Tink
 
Old 05-26-2004, 07:27 PM   #8
NonSumPisces
Member
 
Registered: May 2004
Location: Västerås, Sweden
Distribution: Slackware Current
Posts: 228

Original Poster
Rep: Reputation: 30
When administering files I do want to be able to use the gui to do it, and that does not count as all the time.
 
Old 05-26-2004, 07:40 PM   #9
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
*sigh*

How about trying
su -c 'export DISPLAY=localhost:0.0; nauseaus&'
then? If need be make an alias of it :P


Cheers,
TInk
 
Old 05-26-2004, 07:44 PM   #10
darthtux
Senior Member
 
Registered: Dec 2001
Location: 35.7480° N, 95.3690° W
Distribution: Debian, Gentoo, Red Hat, Solaris
Posts: 2,070

Rep: Reputation: 47
Most system configuration files are only writable by root period. root is the only owner of the file and the group (usually root) for those files does not have write permission.

There's no way to do what you want (on some programs) without changing permissions and group membership all over the system. This will probably hose it up completely, ruin security, and some programs won't work unless permissions are root user write only. So what you're asking is not and should not be a possibility.

You could do it the simple way and su in a terminal and type in the name of the gui program. If you want several users to be able to without giving them the root password then set up sudo.
man sudo
 
Old 05-27-2004, 12:02 AM   #11
arnyswart
Member
 
Registered: Apr 2004
Posts: 34

Rep: Reputation: 15
No, I have used fedora core, debian and other versions of linux. On those you can log in as root + password or user account and password on the GUI. Most of the time one will log in as a user so they do not accidentially delete crucial files, etc.

Some of the time we want to log in as a root to be able to modify administration files without changing the user privillages. If this doesn't work I will just uninstall mandrake and give up on it because this is crucial to doing things.

arny!
 
Old 05-27-2004, 12:14 AM   #12
darthtux
Senior Member
 
Registered: Dec 2001
Location: 35.7480° N, 95.3690° W
Distribution: Debian, Gentoo, Red Hat, Solaris
Posts: 2,070

Rep: Reputation: 47
You've been instructed by two people. Either
su or sudo

http://www.starnetok.net/~jallen/tutorials/su-sudo.html

su lets a user switch to the root account. sudo gives root privledges to users for either all commands or just a few commands. It's according to how you set it up.

A user account cannot be created with root permissions. That's not how linux works.
 
Old 05-27-2004, 01:08 AM   #13
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Quote:
Originally posted by darthtux

A user account cannot be created with root permissions. That's not how linux works.
Sorry, but that's blatantly wrong. It's no problem
to create a user with a different name from root but
the UID 0, which in fact makes him root as well.

It's not impossible, it's just utterly stupid and
anything but recommended practice.



Cheers,
Tink
 
Old 05-27-2004, 10:51 AM   #14
NonSumPisces
Member
 
Registered: May 2004
Location: Västerås, Sweden
Distribution: Slackware Current
Posts: 228

Original Poster
Rep: Reputation: 30
Thx ppl I'll go with the su method
 
Old 05-27-2004, 01:26 PM   #15
darthtux
Senior Member
 
Registered: Dec 2001
Location: 35.7480° N, 95.3690° W
Distribution: Debian, Gentoo, Red Hat, Solaris
Posts: 2,070

Rep: Reputation: 47
Quote:
Originally posted by Tinkster
Sorry, but that's blatantly wrong. It's no problem
to create a user with a different name from root but
the UID 0, which in fact makes him root as well.

It's not impossible, it's just utterly stupid and
anything but recommended practice.

Well by Jove, you're right. I created an account with UID 0 just a different username, su'd to it and was root.

I created an account with the username notroot
james: $ su notroot
root: #

I agree that would be stupid and would also create just another security problem.
 
  


Closed Thread



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
How do I retain the PATH in the root account even when I switch to root using su? thearchitect Linux - Newbie 1 08-13-2005 12:02 AM
My user account has no write permissions guitarfella Slackware 2 12-15-2004 12:08 AM
Fixing MySQL root account permissions. TexasDex Linux - Software 2 02-02-2004 09:39 PM
permissions question... can I make a directory writable from my user account hindenbergbaby Linux - Newbie 9 10-20-2003 04:42 PM
The use of the 'root' account... tarballed Linux - Security 4 07-02-2003 07:07 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:27 PM.

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