LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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-23-2002, 10:24 PM   #1
exigent
Member
 
Registered: Aug 2002
Distribution: damnsmalllinux
Posts: 205

Rep: Reputation: 30
transfering user settings


i want to create a user account with all the same properties as root, but without being root... how can i do this?
 
Old 09-23-2002, 10:53 PM   #2
neo77777
LQ Addict
 
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704

Rep: Reputation: 56
What do you mean, you need something like administror account? you can do so by creating administrator with uid=0, man adduser, but the best way to do it is to setup sudo, for more details search here for sudo, sudoers.
 
Old 09-23-2002, 11:58 PM   #3
exigent
Member
 
Registered: Aug 2002
Distribution: damnsmalllinux
Posts: 205

Original Poster
Rep: Reputation: 30
no no... not an admin account, an account that has the same settings for all the programs on the machine, but without all the privlages.
 
Old 09-24-2002, 12:04 AM   #4
neo77777
LQ Addict
 
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704

Rep: Reputation: 56
Can you throw some example, 'cause I have a hard time understanding what exactly you are after?
 
Old 09-24-2002, 12:13 AM   #5
exigent
Member
 
Registered: Aug 2002
Distribution: damnsmalllinux
Posts: 205

Original Poster
Rep: Reputation: 30
sorry, i'll try to elaborate. i have an account that i woild like to duplicate minus the privilages. like if, in another account, i started the x enviroment, the wallpaper, folder settings desktop etc. would all be the same as the original account. the same with other programs as well, like nautilus or eterm, etc.
 
Old 09-24-2002, 05:20 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
So you want root access...

***NOT FOR ANYONE WHO DOESN'T WANT THEIR SYSTEM COMPROMISED, etc ***

Ok now that I have placed the disclaimer (which really should be noted), onto one way...

Create a normal user, however your heart desires, useradd, whatever.

After, open /etc/passwd (as root) and change the UID to 0 of the newly created user. I believe UID is the first number, maybe something like 1001 (someone correct me if I'm wrong on this part). Now save the file, and smile. You now have root priviledges/access on a user account.

Really you shouldn't do this on a system that you have connected to anything, or have any chance of anyone using other than yourself. It's REALLY not a good idea to do this.

Cool
 
Old 09-24-2002, 05:27 AM   #7
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
If you just want to have the same settings, you can just copy (as root) /root contents to new user's home directory and change owner to the new user. Of course, when you change anything they won't be the same anymore.
 
Old 09-24-2002, 06:01 AM   #8
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
If you do this, when you change owner, use this:
chown -R /directory/and/its/subdirectories

The -R option will go into each subdirectory and change ownership of it as well, helping you out later on.

Cool
 
Old 09-24-2002, 04:08 PM   #9
exigent
Member
 
Registered: Aug 2002
Distribution: damnsmalllinux
Posts: 205

Original Poster
Rep: Reputation: 30
ah, ok, thank you for all the help
 
Old 09-24-2002, 04:18 PM   #10
exigent
Member
 
Registered: Aug 2002
Distribution: damnsmalllinux
Posts: 205

Original Poster
Rep: Reputation: 30
well, it was a good idea, but it didn't work... with the new user i still have the default desktop in gnome, nautilus, etc. why didn't it work?
 
Old 09-24-2002, 04:48 PM   #11
neo77777
LQ Addict
 
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704

Rep: Reputation: 56
Create a file /etc/skel/.initrc
containing the line
exec /path/to/your/fav/wm
now when you call
useradd
include -k /etc/skel

useradd -m -k /etc/skel username
passwd username
 
Old 09-24-2002, 05:26 PM   #12
exigent
Member
 
Registered: Aug 2002
Distribution: damnsmalllinux
Posts: 205

Original Poster
Rep: Reputation: 30
that will work for sawfish, but what about everything else?
 
Old 09-24-2002, 05:51 PM   #13
neo77777
LQ Addict
 
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704

Rep: Reputation: 56
What do you mean? it will work for everything else as well, as long as /path/to/your/another/favorite/wm is correct.
 
Old 09-24-2002, 05:53 PM   #14
neo77777
LQ Addict
 
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704

Rep: Reputation: 56
you can include another apps that should start upon entering X in the same file just before the exec /path/...
gkrellm &
other_goop&
exec /path/to/your/favorite/another/favorite/whatever/favorite/wm
#exec /path/to/your/favorite/another/favorite/whatever/favorite/wm
#exec /path/to/your/favorite/another/favorite/whatever/favorite/wm
 
Old 09-24-2002, 06:11 PM   #15
exigent
Member
 
Registered: Aug 2002
Distribution: damnsmalllinux
Posts: 205

Original Poster
Rep: Reputation: 30
well, it didn't work... i did it with sawfish to test it out, but to no avail...
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Where does KDE keep its settings for user? linx win Debian 4 01-22-2009 01:13 PM
Copying ALL user settings? Nuvious Linux - General 2 07-15-2005 01:59 AM
user settings sprice2020 Linux - Newbie 3 10-20-2004 02:12 PM
Saving personal user settings obl1v1us Linux - Software 2 02-11-2004 09:52 AM
user settings exigent Linux - General 2 09-17-2002 04:06 PM

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

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