LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 09-07-2002, 04:30 AM   #1
jester_69
Member
 
Registered: May 2002
Location: Sydney Australia
Distribution: Redhat 6.1 & 7.2
Posts: 91

Rep: Reputation: 15
How can i do this


I want to create an account that basically has the same rights as root.

How do you do this. Will be allowing 1 IP address through firewall via ssh & it will only be a temp thing so please i know about the risks but need to do this...

I have gone into userconf & allowed options there but when i test this users write he still cannot write to config files
 
Old 09-07-2002, 04:34 AM   #2
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
You should try adding this user to group root.

Cool
 
Old 09-07-2002, 04:44 AM   #3
jester_69
Member
 
Registered: May 2002
Location: Sydney Australia
Distribution: Redhat 6.1 & 7.2
Posts: 91

Original Poster
Rep: Reputation: 15
Yes ive done this but write permission was still not available
 
Old 09-07-2002, 04:51 AM   #4
zeky
Member
 
Registered: Jul 2002
Location: Vukojebina, Europe, Earth
Distribution: M$ Lunix v6.66
Posts: 168

Rep: Reputation: 31
I'ts as simple as this:

U sreate a standard user called John, and u wan't to make John to have the same rights as root have, np...

1) create a user John (as normal user)
2) Look in /etc/passwd and u should see something like this:

john:x:1000:100:John Doe,,,:/home/john:/bin/bash

3) Now, all u need to do is change the user and group numbers from whatever they are to 0!

So in my case it would look like this:


john:x:0:0:John Doe,,,:/home/john:/bin/bash

4)Tataaaaaa, have fun

--zeky
 
Old 09-07-2002, 04:54 AM   #5
sandy
Member
 
Registered: Aug 2002
Location: Mumbai,India
Distribution: Linux Mint 12, Gentoo
Posts: 230

Rep: Reputation: 30
I have a wierd idea . First create a normal user . then change his uid as 0 in the /etc/passwd directory..I dont know whether it'll work or not .I remember that i've read it somewhere.
Anyway just try it and inform the results...
 
Old 09-07-2002, 04:59 AM   #6
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
It's unanimous

Cool
 
Old 09-07-2002, 05:31 AM   #7
jester_69
Member
 
Registered: May 2002
Location: Sydney Australia
Distribution: Redhat 6.1 & 7.2
Posts: 91

Original Poster
Rep: Reputation: 15
Thanx guys 8^ ) .Should have known that myself
 
Old 09-07-2002, 08:18 AM   #8
zeky
Member
 
Registered: Jul 2002
Location: Vukojebina, Europe, Earth
Distribution: M$ Lunix v6.66
Posts: 168

Rep: Reputation: 31
yes... u really should...
 
  


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 On
HTML code is Off



LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 07: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