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


Click here to return to the 'Watch out for mv command and symlinks on Samba shares' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Watch out for mv command and symlinks on Samba shares
Authored by: ahbe on Nov 06, '03 12:57:39PM
Small correction, use .profile in the root of your home directory, not .bashrc Than make sure you shutdown that terminal session and start again. It should work now. BTW, I believe this is standard operation with the mv command, at least in Linux that's how it works. That is why the "-i" option exists, to warn you. Normally what you say is what it does. Be careful with the command line. On at least two occasions, I did a "rm -r *" thinking I was in the "/tmp" directory, when I was actually at the root while logged on as root. By the time you realize what you just did, its to late. Be careful!

[ Reply to This | # ]
root implies being careful
Authored by: hayne on Nov 06, '03 02:10:20PM
On at least two occasions, I did a "rm -r *" thinking I was in the "/tmp" directory, when I was actually at the root while logged on as root.
This would seem to indicate that you should not log on as root.

[ Reply to This | # ]
root implies being careful
Authored by: bluehz on Nov 06, '03 07:38:32PM

Actually this happened to me the other day while connected smb to my linux box. I deleted a symlink file toa dir in the Finder and it deleted the actual dir. Luckily it wasn't anything important.



[ Reply to This | # ]