Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'It doesn't properly' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
It doesn't properly
Authored by: hamarkus on Feb 18, '05 07:37:41PM

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).

Logged out, switched back to my main user, unmounted the drive, logged back into the dummy user: the OS created a new user folder: /Volumes/external_harddrive_name/dummy

O.k., I in Netinfo the /Volumes entry is listed above the /Users entry, it's too late over here now, somebody else please try out the opposite.

BTW, why am I not allowed to do a sudo cd ?



[ Reply to This | # ]
sudo cd
Authored by: aixccapt99 on Feb 18, '05 08:29:23PM

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.

So point being, sudo runs programs with root privileges. Since cd is not a program, it doesn't work. You need to do sudo -s to get a new instance of your shell, as root, and then that shell can cd into protected locations.



[ Reply to This | # ]
It doesn't properly
Authored by: Shawn Parr on Feb 18, '05 10:26:24PM

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 :) )

If you need to get into a directory with special permissions, or owned by another user, sudo -s initiates an interactive shell as root for you. i.e. it is similar to just typing su in linux/bsd/unix.



[ Reply to This | # ]
It doesn't properly
Authored by: soporose on Mar 06, '05 07:49:32PM

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.



[ Reply to This | # ]