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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
|
09-23-2002, 10:24 PM
|
#1
|
Member
Registered: Aug 2002
Distribution: damnsmalllinux
Posts: 205
Rep:
|
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?
|
|
|
09-23-2002, 10:53 PM
|
#2
|
LQ Addict
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704
Rep:
|
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.
|
|
|
09-23-2002, 11:58 PM
|
#3
|
Member
Registered: Aug 2002
Distribution: damnsmalllinux
Posts: 205
Original Poster
Rep:
|
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.
|
|
|
09-24-2002, 12:04 AM
|
#4
|
LQ Addict
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704
Rep:
|
Can you throw some example, 'cause I have a hard time understanding what exactly you are after?
|
|
|
09-24-2002, 12:13 AM
|
#5
|
Member
Registered: Aug 2002
Distribution: damnsmalllinux
Posts: 205
Original Poster
Rep:
|
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.
|
|
|
09-24-2002, 05:20 AM
|
#6
|
LQ Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613
Rep:
|
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
|
|
|
09-24-2002, 05:27 AM
|
#7
|
Moderator
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696
|
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.
|
|
|
09-24-2002, 06:01 AM
|
#8
|
LQ Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613
Rep:
|
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
|
|
|
09-24-2002, 04:08 PM
|
#9
|
Member
Registered: Aug 2002
Distribution: damnsmalllinux
Posts: 205
Original Poster
Rep:
|
ah, ok, thank you for all the help
|
|
|
09-24-2002, 04:18 PM
|
#10
|
Member
Registered: Aug 2002
Distribution: damnsmalllinux
Posts: 205
Original Poster
Rep:
|
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?
|
|
|
09-24-2002, 04:48 PM
|
#11
|
LQ Addict
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704
Rep:
|
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
|
|
|
09-24-2002, 05:26 PM
|
#12
|
Member
Registered: Aug 2002
Distribution: damnsmalllinux
Posts: 205
Original Poster
Rep:
|
that will work for sawfish, but what about everything else?
|
|
|
09-24-2002, 05:51 PM
|
#13
|
LQ Addict
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704
Rep:
|
What do you mean? it will work for everything else as well, as long as /path/to/your/another/favorite/wm is correct.
|
|
|
09-24-2002, 05:53 PM
|
#14
|
LQ Addict
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704
Rep:
|
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
|
|
|
09-24-2002, 06:11 PM
|
#15
|
Member
Registered: Aug 2002
Distribution: damnsmalllinux
Posts: 205
Original Poster
Rep:
|
well, it didn't work... i did it with sawfish to test it out, but to no avail...
|
|
|
All times are GMT -5. The time now is 06:52 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|