Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > macOS > Changing from root user

Changing from root user
Thread Tools
digiology
Junior Member
Join Date: May 2001
Location: Cork,Ireland
Status: Offline
Reply With Quote
Jun 11, 2002, 04:03 PM
 
I heard that its not a good idea to be always logged in as root, so I decided to change but alot of my folders are locked(they cant be modified) my music folder is empty (i cant get the ones from the root user to copy there) and my deskop is gone, I want the files that were on it in my new desktop. How do I do this?
When im in one user I cant copy the files over to the other, and vice versa. Its really frustrating!!!
Stuff is great, never take it for granted.
     
pat++
Mac Elite
Join Date: May 2001
Location: Earth
Status: Offline
Reply With Quote
Jun 11, 2002, 04:11 PM
 
A simple way to get your files is to do it the other way around (because root has all privlieges).

Log-in as root, copy all your files in the folders of your new user with the finder.

Then open a terminal.
and enter the following command:

chown -R myuser:staff /Users/myuser

and replace both "myuser" with the short name of your new user. This is very important to make the new files "owned" by the new user and not by root.

Once this is done, log-in with your new user.
     
Earth Mk. II
Mac Elite
Join Date: Feb 2001
Location: Washington, DC
Status: Offline
Reply With Quote
Jun 11, 2002, 04:16 PM
 
frustrating.. but that's unix for 'ya

<abstaining from root user lecture>

if you can't open up files in your home dir (not root's dir, your user's), assuming your OS X username is 'digiology':

try typing 'sudo -R chown digiology:staff /Users/digiology' and enter your user's password at the prompt.

To copy your music files over, 'cp /path/to/files/* ~/Music/' should work (if you have sub-directories, add '-R' after cp to copy them as well). if you get permissions errors, prefix the command with 'sudo' and re-chmod those files as in the first step. (if you use sudo to copy the files, they will be owned by root)

I think, but I'm nor sure, the path to root's home dir is '/var/root' - but don't quote me if that's wrong.

Anyone, please feel free to add, correct, or improve any of my suggestions
/Earth\ Mk\.\ I{2}/
     
pat++
Mac Elite
Join Date: May 2001
Location: Earth
Status: Offline
Reply With Quote
Jun 11, 2002, 04:29 PM
 
</font><blockquote><font size="1" face="Geneva, Verdana, Arial, sans-serif">quote:</font><hr /><font size="1" face="Geneva, Verdana, Arial, sans-serif">Originally posted by Earth Mk. II:
<strong>frustrating.. but that's unix for 'ya

try typing 'sudo -R chown digiology:staff /Users/digiology' and enter your user's password at the prompt.

</strong></font><hr /></blockquote><font size="1" face="Geneva, Verdana, Arial, sans-serif">-R should be AFTER chown <img border="0" title="" alt="[Wink]" src="wink.gif" />
     
Earth Mk. II
Mac Elite
Join Date: Feb 2001
Location: Washington, DC
Status: Offline
Reply With Quote
Jun 11, 2002, 04:33 PM
 
</font><blockquote><font size="1" face="Geneva, Verdana, Arial, sans-serif">quote:</font><hr /><font size="1" face="Geneva, Verdana, Arial, sans-serif">Originally posted by pat++:
<strong> </font><blockquote><font size="1" face="Geneva, Verdana, Arial, sans-serif">quote:</font><hr /><font size="1" face="Geneva, Verdana, Arial, sans-serif">Originally posted by Earth Mk. II:
<strong>frustrating.. but that's unix for 'ya

try typing 'sudo -R chown digiology:staff /Users/digiology' and enter your user's password at the prompt.

</strong></font><hr /></blockquote><font size="1" face="Geneva, Verdana, Arial, sans-serif">-R should be AFTER chown <img border="0" title="" alt="[Wink]" src="wink.gif" /> </strong></font><hr /></blockquote><font size="1" face="Geneva, Verdana, Arial, sans-serif">D'oh!

you are, of course, right... that should teach me to proof read. <img border="0" title="" alt="[Wink]" src="wink.gif" />
/Earth\ Mk\.\ I{2}/
     
   
 
Forum Links
Forum 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
Top
Privacy Policy
All times are GMT -4. The time now is 03:45 PM.
All contents of these forums © 1995-2017 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.8 © 2000-2017, Jelsoft Enterprises Ltd.,