I installed Kali linux and while i was running as root I installed quite some programs and made graphical changes etc, even changed desktop environment .. then made a new user so I won't be using root and the new user has all the default stuff and no access to anything I did in the root session .. is there any way to ..um .. maybe use root's session without the previliges until password is entered? :s
Slavi 94 Master Poster Featured Poster
Recommended Answers
Jump to Post— Hiroshe 499I'm not familiar with Kali, and I winged the entire thing without testing. Here goes.
As root:
# Create the users home directory. mkdir /home/<username> # Copy home over from root. cp -r /root/* /home/<username> # Create the account. useradd <username> -d /home/<username> passwd <username> # Set default permissions. chown …
Jump to Post— rubberman 1,355Some settings are universal and others are personal. When as root you set up some GUI configurations, many of those are "global", so you get them as a normal user. As for your question "is there any way to ..um .. maybe use root's session without the previliges until password …
Jump to Post— Hiroshe 499Just a quick question before I try it .. that means all settings and graphical changes/desktop effects will be the same right?
In general, yes. If all your changes were made in your home directory, then it will copy them all over. Even if you made a change …
Jump to Post— Hiroshe 499It's ok if they don't exist. Set these permissions if they happen to exist.
Start over with:
userdel <username> rm -rf /home/<username>Do everything a I sad before, except:
…
Usechmod -R 744 /home/<username>instead ofchmod -R 600 /home/<username>and don't run anything from lines 16 to 19.
Jump to Post— Hiroshe 499Just be carefull. That
chmod 744command made everything executable. That means if you had any malicious programs in your admin account that didn't have execute permissions, now they do.You probably don't need to worry about this, but it might be good practice to run
chmod 644 -R /home/<username>…
All 27 Replies
Hiroshe 499 Posting Whiz in Training
Slavi 94 Master Poster Featured Poster
rubberman 1,355 Nearly a Posting Virtuoso Featured Poster
Slavi 94 Master Poster Featured Poster
Hiroshe 499 Posting Whiz in Training
Slavi 94 Master Poster Featured Poster
Hiroshe 499 Posting Whiz in Training
Slavi 94 Master Poster Featured Poster
Slavi 94 Master Poster Featured Poster
Slavi 94 Master Poster Featured Poster
Hiroshe 499 Posting Whiz in Training
Slavi 94 Master Poster Featured Poster
Hiroshe 499 Posting Whiz in Training
Slavi 94 Master Poster Featured Poster
Hiroshe 499 Posting Whiz in Training
Slavi 94 Master Poster Featured Poster
Slavi 94 Master Poster Featured Poster
Hiroshe 499 Posting Whiz in Training
Hiroshe 499 Posting Whiz in Training
Slavi 94 Master Poster Featured Poster
Slavi 94 Master Poster Featured Poster
Hiroshe 499 Posting Whiz in Training
Slavi 94 Master Poster Featured Poster
Slavi 94 Master Poster Featured Poster
Slavi 94 Master Poster Featured Poster
Slavi 94 Master Poster Featured Poster
Hiroshe 499 Posting Whiz in Training
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.