|
|
It doesn't properly
It works in principle, adding the entry, copying a dummy user folder to the drive (I had 'Ignore permissions' checked while copying, but unchecked it directly after it), logging in, lo and behold it was using the user folder on the external drive (however, all the the custom icons for the 'Movies', 'Pictures' etc. folders, except for 'Applications', had dissappeared).
sudo cd
I'm not 100% sure on this, but I believe it's because cd is not an executable command (ie a program), but rather a shell command. The shell is what holds the concept of your current/working directory, so cd just instructs the shell to change that directory. The system has no such concept; when the shell issues system commands it includes your working directory in the command paths automatically.
It doesn't properly
sudo is temporary. So after the cd would finish, you would be in a directory you have no access to, and hence might get stuck in. Imagine when you get in there, you have no permissions to list anything, see anything, write to anything, or even back out of there. (I am probably wrong about the backing out, but hey it is humorous to contemplate :) )
It doesn't properly
The other posters were correct. 'cd' is not a seperate binary in your path, but rather something your given shell (bash, csh, tcsh, ksh, etc) interprets for you. To properly do that, you would need to spawn a new environment with root privs, ie, sudo tcsh. |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.09 seconds |
|