1854751 Members
16036 Online
104102 Solutions
New Discussion

Re: Permission issue

 
Vishnu Maurya
Occasional Contributor

Permission issue

it is related to permission issue on a file . Two users of 'same group' have same ACL (rwx) on a base directory . There is no permission to others on the Files inside this base directory . These users are neither owner of files nor belong to the owner group of these files But one user is able to access the files inside the directory and other don't.

Please help me to find out the reason.
6 REPLIES 6
Dennis Handly
Acclaimed Contributor

Re: Permission issue

Perhaps it would help to show the commands (and output) used to determine what you said.

You should show the ouput of groups(1) and id(1) for each user.
RAC_1
Honored Contributor

Re: Permission issue

The perms on dirs matter more than perms on file under it. What are perms on dir and on file?

What exactly are you trying to do?
There is no substitute to HARDWORK
Vishnu Maurya
Occasional Contributor

Re: Permission issue

user ps009 is able to access the below file data.txt but ps024 is not able access this file. Both of these users are not part of mam036 group.
#ls -l /mydir/mydata/data.txt
-rw-rwx---+ 1 psa mam036 104259584 Sep 13 06:50 /mydir/mydata/data.txt

#getacl /mydir/mydata/data.txt
# file: /mydir/mydata/data.txt
# owner: psa
# group: mam036
user::rw-
group::rwx
group:mam036:rwx
class:rwx
other:---

#getacl /mydir/mydata
# file: /mydir/mydata
# owner: orb
# group: mam036
user::rwx
user:9683:rwx
user:ps009:rwx
user:ps024:rwx
user:ps040:r-x
user:ps070:r-x
group::rwx
group:pvs:rwx
group:mam036:rwx
class:rwx
other:---
default:group:mam036:rwx

#id ps009
uid=9688(ps009) gid=9304(sreg)

#id ps024
uid=10315(ps024) gid=9304(sreg)
Peter Nikitka
Honored Contributor

Re: Permission issue

Hi,

if the users are not additional members of the group 'mam036' they both wouldn't be able to access that file.
Check via the 'groups' command (man page) and check /etc/logingroups as well.

mfG Peter
The Universe is a pretty big place, it's bigger than anything anyone has ever dreamed of before. So if it's just us, seems like an awful waste of space, right? Jodie Foster in "Contact"
Vishnu Maurya
Occasional Contributor

Re: Permission issue

Both users are not the member of any other group.
Vishnu Maurya
Occasional Contributor

Re: Permission issue

Both users are member of same group. Please let me know if i have to check some other settings.