Forum Moderators: bakedjake

Message Too Old, No Replies

Problem with $ folder

folder with $ as the start of the name causing problems

         

DrivingLester

2:31 pm on Nov 25, 2004 (gmt 0)



I accidently created a user and home directory with $ in front of the name ie. $FOLDER. (don't ask ;) ). Anyway, now my SAMBA users don't have write access to any of their shares. Turns out when I cd into the $FOLDER it brings me into the root folder.... so everytime I try to delete it, it wants to delete everything on my machine. The permissions from the $FOLDER seem to have propogated down from the root to all folders. I can't chown or chmod the folder either. PLEASE, PLEASE, PLEASE, this is urgent!

TIA!

Mat

mm1220

5:06 pm on Nov 25, 2004 (gmt 0)

10+ Year Member



Try a backslash: i.e. use \$FOLDER. This should work.

Without a backslash a unix shell will take $FOLDER to mean the variable FOLDER.