×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

File access permissions error

File access permissions error

File access permissions error

(OP)
cp -p /somefolder/somefile /someotherfolder/

is returning:
The file access permissions do not allow the specified action

the file is being copied with the expected permissions so why is AIX giving me this error?

drwxrwxrwx somefolder
drwxrwxrwx someotherfolder
-rw-rw-r-- somefile copies with -rw-rw-r--



RE: File access permissions error

Hello,
Look for the dot "." directory, ownership and permissions?

You said,
drwxrwxrwx somefolder
drwxrwxrwx someotherfolder

1st goto somefolder
ls -la somefolder

total 64
drwxr-xr-x 3 root system 4096 Jul 09 11:05 . --> what permission you have on this?
drwxr-xr-x 21 bin bin 4096 Apr 11 12:44 ..

Make sure, while chmod'ing to use -R flag (recursive)

Like chmod -R 777 somefolder and someotherfolder.

You might have used chmod 777 somefolder, which did not changed the permissions on its dot directory, that is why you cannot copy the file, as the user you are trying to copy as, has not enough permission to copy.

Hope that answer your question.

RE: File access permissions error

(OP)
The . folder is
drwxr-xr-x bin bin

The confusing part of this is that the file IS being copied with all of its rights ... the question is if it is being copied then why the error message

RE: File access permissions error

OK,
The way you are describing it, the cause could be

Either the destination directory does not exist (but you have the directory - someotherfolder) or it could a File system not mounted properly.

Or else, the destination directory is a NFS mount.

RE: File access permissions error

(OP)
Yes the destination folder is indeed an NFS folder ... is there anything that can be done with this or do I just pipe the error into dev/null?

RE: File access permissions error

If you are a system administrator and have access to the NFS mount check/change the permission again (it should be dynamic), and if you NOT, then you can notify them saying the same.

If your efforts/request is futile, go with redirecting it to /dev/null.

RE: File access permissions error

(OP)
Thank-you for the info I will pass this on.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close