Why can't I rename this file?

Ask a Question related to Linux / Unix Administration, Design and Development.

  1. #1

    Default Why can't I rename this file?

    Why can't I rename this file under my normal login?

    $ pwd
    /var/tmp
    $ ls -ld
    drwxrwxrwt 3 bin bin 83456 May 13 11:51 .
    $ ls -l ar.exp
    -rw-rw-rw- 1 root system 2150739 May 12 23:22 ar.exp
    $ mv ar.exp art.exp
    mv: 0653-401 Cannot rename ar.exp to art.exp:
    Operation not permitted.

    TIA,
    Dan
    Dan Guest

  2. Similar Questions and Discussions

    1. rename file and/or folder
      I am a web developer and have several clients who I have just started on Contribute. Already we are all very frustrated over the limitation of...
    2. upload and rename file
      I am trying to determine a way to upload a file usinf cffile, but to rename it before it gets written to the filesystem. I have users uploading...
    3. Rename a file
      Hi, Is there any inbuilt command by which we can rename a file (in WinNT) Regards, Chinku __________________________________ Do you...
    4. Copy File and Rename
      I need to copy about 200 files from one directory to another while renaming them. Does anyone have a short script to do this? TIA
    5. Rename an extrenal file
      I´ve tryed BuddyAPI. Works very well in direcoter. But when im creating a projecter it doesnt work.....wired
  3. #2

    Default Re: Why can't I rename this file?

    Dan <dan@nospam.com> wrote:
    > Why can't I rename this file under my normal login?
    > $ pwd
    > /var/tmp
    > $ ls -ld
    > drwxrwxrwt 3 bin bin 83456 May 13 11:51 .
    > $ ls -l ar.exp
    > -rw-rw-rw- 1 root system 2150739 May 12 23:22 ar.exp
    > $ mv ar.exp art.exp
    > mv: 0653-401 Cannot rename ar.exp to art.exp:
    > Operation not permitted.
    Note the 't' bit on the directory. From the manpage (FreeBSD) :
    1000 (the sticky bit) When set on a directory, unprivileged
    users can delete and rename only those files in the direc*
    tory that are owned by them, regardless of the permissions
    on the directory. Under FreeBSD, the sticky bit is ignored
    for executable files and may only be set for directories
    (see sticky(8)).


    AIX is strange, but in this respect unix-compatible.
    > TIA,
    > Dan
    --
    Peter Håkanson
    IPSec Sverige ( At Gothenburg Riverside )
    Sorry about my e-mail address, but i'm trying to keep spam out,
    remove "icke-reklam" if you feel for mailing me. Thanx.
    phn@icke-reklam.ipsec.nu Guest

  4. #3

    Default Re: Why can't I rename this file?

    In article <CLNoc.34$pe4.49155@news.uswest.net>, Dan <dan@nospam.com>
    wrote:
    > Why can't I rename this file under my normal login?
    >
    > $ pwd
    > /var/tmp
    > $ ls -ld
    > drwxrwxrwt 3 bin bin 83456 May 13 11:51 .
    > $ ls -l ar.exp
    > -rw-rw-rw- 1 root system 2150739 May 12 23:22 ar.exp
    > $ mv ar.exp art.exp
    > mv: 0653-401 Cannot rename ar.exp to art.exp:
    > Operation not permitted.
    The directory's sticky bit is set. Only the owner of a file or the
    owner of the directory may remove or rename the file.

    --
    Barry Margolin, [email]barmar@alum.mit.edu[/email]
    Arlington, MA
    *** PLEASE post questions in newsgroups, not directly to me ***
    Barry Margolin 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