Permission Denied issue on AIX 6.1 using Root


 
Thread Tools Search this Thread
Operating Systems AIX Permission Denied issue on AIX 6.1 using Root
# 1  
Old 04-12-2012
Error Permission Denied issue on AIX 6.1 using Root

I have the following problem on my AIX 6.1 server.

I logged in with Root ID to this folder etc/opt/symantec/scspagent/lib/instfunlib I try changing the folder permission but I keep getting this output :

Code:
chmod: /opt/symantec/scspagent/lib/instfunlib: Permission Denied

I did a listing on it by executing this command :
Code:
ls -lrt /opt/symantec/scspagent/lib/

I get the output :
Code:
/opt/symantec/scspagent/lib/instfunlib : No permission

I tried
Code:
chmod -R 755 /opt/symantec/scspagent/

I get this output :
Code:
chmod: lib: Permission denied

Does anyone know how they can assist me in this? I need to change the permissions to allow my application to work.

I am already running in root. Shouldn't that have full access to every folders and files in AIX already?


Moderator's Comments:
Mod Comment Please use code tags, thanks!

Last edited by zaxxon; 04-12-2012 at 11:55 AM.. Reason: code tags, see PM
# 2  
Old 04-12-2012
Quote:
Originally Posted by mcdsweet98
I have the following problem on my AIX 6.1 server.

I logged in with Root ID to this folder etc/opt/symantec/scspagent/lib/instfunlib I try changing the folder permission but I keep getting this output :

chmod: /opt/symantec/scspagent/lib/instfunlib: Permission Denied

I did a listing on it by executing this command :
ls -lrt /opt/symantec/scspagent/lib/

I get the output :
/opt/symantec/scspagent/lib/instfunlib : No permission

I tried
chmod -R 755 /opt/symantec/scspagent/

I get this output :
chmod: lib: Permission denied

Does anyone know how they can assist me in this? I need to change the permissions to allow my application to work.

I am already running in root. Shouldn't that have full access to every folders and files in AIX already?
Please read your output

etc/opt/symantec/scspagent/lib/instfunlib does not equal

/opt/symantec/scspagent/lib/instfunlib

try

Code:
chmod XXX /etc/opt/symantec/scspagent/lib/instfunlib

# 3  
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
# 4  
Old 04-13-2012
Hi Guys,
I found the solution. There was an application called Symantec Critical Protection System that was preventing me from doing the changes. A policy was set from the application that wouldn't allow changes made on the particular folder and all of its contents.

Once the policy was adjusted, I am now able to execute my commands.

Thanks again for all your contribution. I cracked my head for 2 days trying to figure it out.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

4. 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

5. 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

6. 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

7. 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

8. 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

9. 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

10. 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
Login or Register to Ask a Question