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


 
Thread Tools Search this Thread
Operating Systems Solaris ISSUE : bash: cd: /rep/prok: Permission denied
# 1  
Old 11-06-2013
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 working here
/rep/reto
bash-3.2$

****************************
getfacl /rep/reto
# file: /rep/reto
# owner: cvsadmin
# group: reto
user::rwx
user:s109553:r-x #effective:r-x
group::rwx #effective:rwx
mask:rwx
other:---



---------------------------

drwxrws---+ 9 cvsadmin prok 1024 Mar 14 2011 prok

su5sr117# su - s109552
$ bash
bash-3.2$ cd /rep/prok
bash: cd: /rep/prok: Permission denied <---------- not working here
bash-3.2$

**********************

getfacl /rep/prok
# file: /rep/prok
# owner: cvsadmin
# group: prok
user::rwx
user:s109552:r-- #effective:r--
group::rwx #effective:rwx
mask:rwx
other:---
# 2  
Old 11-06-2013
You can't cd into a directory that doesn't grant you search permission.
The permissions:
Code:
user:s109552:r-- #effective:r--

should probably be:
Code:
user:s109552:r-x #effective:r-x

assuming that you don't want user s109552 to create files in nor remove files from that directory.

Last edited by Don Cragun; 11-06-2013 at 02:28 AM.. Reason: Note limits.
This User Gave Thanks to Don Cragun For This Post:
# 3  
Old 11-06-2013
Thanks it worked.

Actually i got confused with "x". I have cross verified. user have only read access.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Executing bash file with sudo for the second time, leads to permission denied, for some commands

I have a script that checks if the script has been ran with sudo. If the script is not ran as sudo, the current script is being executed with exec sudo bash. You are asked for a password, you type in the password, success. Everything is perfect - the commands inside the script are ran as sudo.... (1 Reply)
Discussion started by: boqsc
1 Replies

2. UNIX for Dummies Questions & Answers

Permission denied for bash

my file permissions are -rwxrwxrwx for runInstall file and while giving " sudo bash runInstall.sh " then i am getting error " permission denied" now i don't see any reasonable answer for that please suggest what should i do? :eek: got to start DBConnection practice with oracle database and... (4 Replies)
Discussion started by: toshanshu
4 Replies

3. UNIX for Dummies Questions & Answers

bash: permission denied...(after it allows me?)

I'm sure this question comes up a lot, but I'm particularly confused in this situation. I can run my program once, just fine. However, if I try to run it again without recompiling, bash refuses to give me permission. I have a small idea why, but I don't think think I'm right. Here's what I'm... (1 Reply)
Discussion started by: statichazard
1 Replies

4. AIX

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 : chmod: /opt/symantec/scspagent/lib/instfunlib: Permission Denied I did a listing on it... (3 Replies)
Discussion started by: mcdsweet98
3 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. Shell Programming and Scripting

Permission denied

I created a user so that when he logs in he will be directed to a menu /etc/passwd user1:x:115:1:Support -SysAd:/export/home/user1:/export/home/suppotrmenu/script.sh However when I logged in remotely from another server by ssh user1@1.1.1.1 , it saysexport/home/suppotrmenu/script.sh:... (4 Replies)
Discussion started by: lhareigh890
4 Replies

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

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

9. UNIX for Dummies Questions & Answers

Bash: permission denied

Hello, I have a problem creating files in a certain folder. I installed apache and mysql today, using this guide: http://computerfaq.be/ubuntu-apache-mysql-php-server-installeren/ (can't post links yet :( ) Instead of /home/www/html I used /home/www/ for the document root. Now I... (12 Replies)
Discussion started by: emveedee
12 Replies

10. UNIX for Dummies Questions & Answers

Permission denied

I would like to copy data from local mechine to cluster. Basically, I typed scp -r DVD/ acount@cluster:/ it shows Permission denied. Could anyone please give me a clue to write permission on cluster, please? The poperty of where on cluster I'd like to put is drwxr-xr-x Any idea would... (1 Reply)
Discussion started by: su_in99
1 Replies
Login or Register to Ask a Question