Re: cp: cannot access -- Wha?

From: Michael Paoli (michael1cat_at_yahoo.com)
Date: 12/06/04


Date: 5 Dec 2004 23:08:08 -0800

laredotornado@zipmail.com (D. Alvarado) wrote in message news:<9fe1f2ad.0412031318.61ff58a5@posting.google.com>...
> Hello, I have a script that is supposed to copy a file to a
> destination directory. Here is the part of the script that does the

> tab delimited file. When I run the script, I get thsi error
> > ./make_dictionary.sh -d /content/my/http/nsmedia/liveink/dictionary/ temp.tsv
> cp: cannot access /export/home/dalvorad/scripts/liveinkmaker/soundfiles/abandoned.mp3
> The permissions on the source file are
> rw-rw-r--

> and on the destination directory they are
> rw-rw-r--
    ^ ^ ^
You need "execute" (access) permission on a directory to do anything
with the contents of the directory. Without "execute" permission
on the directory, you can't cd into the directory and can't access or
stat anything in the directory (though read permission on the directory
will allow the names of the files (of any type) in the directory
itself to be determined).



Relevant Pages

  • Re: editing licensed shows
    ... You can do almost anything with CHESS if you get permission. ... the first productions done after Broadway was by the Long Beach Civic ... The script was very much changed by director ...
    (rec.arts.theatre.musicals)
  • RE: Help needed setting user security rights through a script
    ... 'this script will set permission on given folder... ... 'Folder on which permissions will be applied, ... 'users:C means "Users" group will be assigned Change permission. ... > install or uninstall applications. ...
    (microsoft.public.windows.server.scripting)
  • Re: User Account Security
    ... Better post this under the original posting, so that anybody could follow it and find it again. ... after some times about 30 minutes all permission changed with other ... I created a script and disabled this settings ... the password you add two deny ACE's to the DACL. ...
    (microsoft.public.windows.server.active_directory)
  • Re: mplayer without libmp3lame support
    ... I had the same symptoms when a cdrom was mounted without execute permission, and I attempted to run a shell script on the cd. ... That is until that script attempted to run another script on the cd, at which point it again gave me a permission denied error message similar to yours. ...
    (Fedora)
  • Re: Command line cannot fwrite, browser can
    ... Using the command line, the script gives a warning, and then fails saying ... Classic windows permission issue. ...
    (comp.lang.php)