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 PostI'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 PostJust 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 PostIt'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 PostJust be carefull. That
chmod 744
command 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>
…
Jump to PostOkay I'll try it and get back :) Um, about malicious software, I just reinstalled everything completely so should be safe for now
Yes, it's just practice.
When I used copy the root folder root/* with the star afterwards, doesnt that mean it would include hidden files …
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.