i created a symlink as root in a dir test. that symlink is owned by root.root. but the target directory is owned by cj.cj. why do rm cannot remove a symlink? i want to remove it so that i can create one as user cj. is there something that i missed?
TIA here's the output of my commands [EMAIL PROTECTED] test]# ls -la total 12 drwxr-xr-x 2 root root 4096 May 4 14:01 . drwxr-x--- 24 root root 4096 May 4 13:56 .. lrwxrwxrwx 1 root root 21 May 4 14:00 symlink -> /home/cj/symlink/dir/ [EMAIL PROTECTED] test]# rm symlink/ rm: cannot remove directory `symlink/': Is a directory [EMAIL PROTECTED] test]# rmdir symlink/ rmdir: `symlink/': Not a directory [EMAIL PROTECTED] test]# ls -la /home/cj/symlink/ total 6 drwxrwxr-x 3 cj cj 1024 May 4 13:59 . drwx------ 21 cj cj 3072 May 4 13:53 .. drwxrwxr-x 2 cj cj 1024 May 4 13:57 dir [EMAIL PROTECTED] test]# unlink symlink/ unlink: cannot unlink `symlink/': Not a directory [EMAIL PROTECTED] test]#[ chown cj.cj symlink/ [EMAIL PROTECTED] test]# ls -la total 12 drwxr-xr-x 2 root root 4096 May 4 14:01 . drwxr-x--- 24 root root 4096 May 4 13:56 .. lrwxrwxrwx 1 root root 21 May 4 14:00 symlink -> /home/cj/symlink/dir/ [EMAIL PROTECTED] test]# -- cj pangilinan linux user, java programmer _________________________________________________ Philippine Linux Users' Group (PLUG) Mailing List [email protected] (#PLUG @ irc.free.net.ph) Read the Guidelines: http://linux.org.ph/lists Searchable Archives: http://archives.free.net.ph

