Sponsored Content
Operating Systems AIX Permission Denied issue on AIX 6.1 using Root Post 302622565 by rbatte1 on Thursday 12th of April 2012 10:33:43 AM
Old 04-12-2012
Do you have NFS mounted filesystems in play here? Depending on the share, you may indeed not have permissions even though you are root on your client.

The man page for chmod has:-
Quote:
-R Descends only directories recursively, as specified by the pattern
File...|Directory.... The -R flag changes the file mode bits of
each directory and of all files matching the specified pattern.

When a symbolic link is encountered and the link points to a
directory, the file mode bits of that directory are changed but
the directory is not further traversed.
... so your action seems correct, hence my question about NFS. I'm assuming that you haven't mounted the filesystem as Read-Only, by the way.



I hope that this helps,
Robin
Liverpool/Blackburn
UK
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

permission denied??

i'm trying to set up my internet connection and i was told i need to edit the file /etc/ppp/pap-secrets but i get a permission denied message...why?? (6 Replies)
Discussion started by: justchillin
6 Replies

2. AIX

rm: execute permission denied in AIX

Hello All, We have an existing ssh set-up between 2 Unix servers ( Server A and Server B). Recently, we've had a problem where we cannot delete files (via app engine and even manually, after connecting thru ssh) on Server B. We manage Server A but Server B is handled by a different group, as a... (1 Reply)
Discussion started by: chipahoys
1 Replies

3. UNIX for Dummies Questions & Answers

Permission denied when changing root password after reset

I have a Solaris 10 machine that I didn't know the root password to so I went into single user mode and removed the password from the shadow file and rebooted and I am able to login with no password now. But my problem is that when I try to change the root password from no password to something... (0 Replies)
Discussion started by: darkone_d1_2000
0 Replies

4. Shell Programming and Scripting

permission denied issue

hello I m trying to enter in a folder through my script but getting permission denied error .. Is there any command or somthing else so that i can access these folder through my script. (3 Replies)
Discussion started by: urfrnddpk
3 Replies

5. Linux

Permission denied issue on a Shared drive

Hi, I have 2 linux servers. One of them has a mount which I have mapped to a shared samba directory on the other server. Below will help you understand better. smb.conf on Server1: workgroup = WRKGRP netbios name = smbserver security = SHARE load printers = No default service = global... (11 Replies)
Discussion started by: satishrao
11 Replies

6. Linux

Help with RT 4.0.4 Installation-Mason permission denied issue

Hi, I am trying to install RT 4.0.4 on Centos 6. I am almost done with the installation. However, when i try to start my web server (Apache - user: apache, group: apache) i get the following error: Starting httpd: : (in cleanup) Error while loading /opt/rt4/sbin/rt-server: Cannot create... (0 Replies)
Discussion started by: rtipx_user
0 Replies

7. Linux

/var/lock/subsys permission denied for root

Hello I have simple line of code here: FILE *lockfp = fopen("/var/lock/subsys/processName", "w"); which is denied even running as root. The result is locking failed for the following reason: Permission denied How is this possible? Why is this happening? Thanks for your... (4 Replies)
Discussion started by: flagman5
4 Replies

8. Shell Programming and Scripting

Trying to create a script to run as root, permission denied

Hello all, I am trying to create a script or a .command file that will run for me and my other techs on many, many Mac OSX computers that will add a file to the /etc/ folder called /etc/launchd.conf Every time I try to run the script, I get "Permission Denied" when trying to put the file into... (13 Replies)
Discussion started by: DonnieNarco
13 Replies

9. Solaris

ISSUE : bash: cd: /rep/prok: Permission denied

Hi All, i have two accounts with acl permissions. I need to provide read access to both users. for one user s109552 "cd" is not working. drwxrws---+ 8 cvsadmin reto 1024 Aug 23 2011 reto su5sr117# su - s109553 $ bash bash-3.2$ cd /rep/reto bash-3.2$ pwd <-------- it... (2 Replies)
Discussion started by: Naveen.6025
2 Replies

10. Ubuntu

Permission denied

Trying to get date into the txt file. It says Permission denied. echo $(date +%I:%M:%S_%D) >> /tmp/systemd_suspend_test_err.txt exec 2>> /tmp/systemd_suspend_test_err.txt if ; then # Do the thing you want before suspend here echo "we are suspending $(date +%I:%M:%S_%D)." elif ;... (5 Replies)
Discussion started by: drew77
5 Replies
LINK(2) 						     Linux Programmer's Manual							   LINK(2)

NAME
link - make a new name for a file SYNOPSIS
#include <unistd.h> int link(const char *oldpath, const char *newpath); DESCRIPTION
link creates a new link (also known as a hard link) to an existing file. If newpath exists it will not be overwritten. This new name may be used exactly as the old one for any operation; both names refer to the same file (and so have the same permissions and ownership) and it is impossible to tell which name was the `original'. RETURN VALUE
On success, zero is returned. On error, -1 is returned, and errno is set appropriately. ERRORS
EXDEV oldpath and newpath are not on the same filesystem. EPERM The filesystem containing oldpath and newpath does not support the creation of hard links. EFAULT oldpath or newpath points outside your accessible address space. EACCES Write access to the directory containing newpath is not allowed for the process's effective uid, or one of the directories in old- path or newpath did not allow search (execute) permission. ENAMETOOLONG oldpath or newpath was too long. ENOENT A directory component in oldpath or newpath does not exist or is a dangling symbolic link. ENOTDIR A component used as a directory in oldpath or newpath is not, in fact, a directory. ENOMEM Insufficient kernel memory was available. EROFS The file is on a read-only filesystem. EEXIST newpath already exists. EMLINK The file referred to by oldpath already has the maximum number of links to it. ELOOP Too many symbolic links were encountered in resolving oldpath or newpath. ENOSPC The device containing the file has no room for the new directory entry. EPERM oldpath is a directory. EIO An I/O error occurred. NOTES
Hard links, as created by link, cannot span filesystems. Use symlink if this is required. CONFORMING TO
SVr4, SVID, POSIX, BSD 4.3, X/OPEN. SVr4 documents additional ENOLINK and EMULTIHOP error conditions; POSIX.1 does not document ELOOP. X/OPEN does not document EFAULT, ENOMEM or EIO. BUGS
On NFS file systems, the return code may be wrong in case the NFS server performs the link creation and dies before it can say so. Use stat(2) to find out if the link got created. SEE ALSO
symlink(2), unlink(2), rename(2), open(2), stat(2), ln(1) Linux 2.0.30 1997-12-10 LINK(2)
All times are GMT -4. The time now is 02:09 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy