How to rm a symbolic link?

Ask a Question related to Sun Solaris, Design and Development.

  1. #1

    Default How to rm a symbolic link?

    I have a link with a priviledge of 777 , but the owner is root.
    how can I rm it?


    Bing-Feng Wang Guest

  2. Similar Questions and Discussions

    1. symbolic references
      Greetings, I’m trying to generate a tree of nested hashes . Perhaps you could suggest a better solution. Currently I'm trying to use symbolic...
    2. symbolic references and hashes
      Hi folks, I've got the code: package Trainset; my %_BLOCKS=(); # blocks of track my %_TRAINS=(); # trains my %_BOXS=(); # signalboxes
    3. run-time access to symbolic information
      I am working on a routine for resolution of code address into the module/function name (C/C++, AIX 5.2). I use ldopen()/ldtbread() functions...
    4. too many symbolic links
      How can I get rid of this error :. l: can not access directory./usr/lib/lib/lib/lib/lib/lib/lib/lib/lib/lib/lib/lib/lib/lib/lib/...
    5. Help needed on Symbolic links....
      Does anyone know how to get the actual referenced filename from a symbolic link from a c program. What would be the system call? There must be one,...
  3. #2

    Default Re: How to rm a symbolic link?

    On Mon, 28 Jul 2003 18:11:32 -0400, Bing-Feng Wang wrote:
    > I have a link with a priviledge of 777 , but the owner is root.
    > how can I rm it?
    # rm /path_to/name_of_link

    Dave Uhring Guest

  4. #3

    Default Re: How to rm a symbolic link?

    In article <3F259F94.36459A5C@nortelnetworks.com>,
    Bing-Feng Wang <bingfeng@nortelnetworks.com> wrote:
    >I have a link with a priviledge of 777 , but the owner is root.
    >how can I rm it?
    The owner and permissions of a symbolic link are mostly meaningless. And
    for any type of file, removing it depends on permissions on the directory,
    not the file itself (although if the directory's sticky bit is set then the
    ownership of the file comes into play).

    If you have write permission to the directory, you should be able to remove
    anything in it.

    --
    Barry Margolin, [email]barry.margolin@level3.com[/email]
    Level(3), Woburn, MA
    *** DON'T SEND TECHNICAL QUESTIONS DIRECTLY TO ME, post them to newsgroups.
    Please DON'T copy followups to me -- I'll assume it wasn't posted to the group.
    Barry Margolin Guest

  5. #4

    Default Re: How to rm a symbolic link?


    "Dave Uhring" <daveuhring@yahoo.com> a écrit dans le message de news:
    [email]pan.2003.07.28.22.24.12.17978@yahoo.com[/email]...
    > On Mon, 28 Jul 2003 18:11:32 -0400, Bing-Feng Wang wrote:
    >
    > > I have a link with a priviledge of 777 , but the owner is root.
    by default, soft links are set to 777, this is not a problem, as the system
    will check first permissions on the link and then the final file.
    > > how can I rm it?
    >
    > # rm /path_to/name_of_link
    >

    M. Bouherrou Guest

  6. #5

    Default Re: How to rm a symbolic link?

    Bing-Feng Wang wrote:
    >
    > I have a link with a priviledge of 777 , but the owner is root.
    > how can I rm it?
    Well? What is the problem? Why can't you?

    -am © 2003
    Anthony Mandic Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139