LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Password
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.

Notices


Reply
  Search this Thread
Old 10-07-2009, 08:36 PM   #1
teamgsi
LQ Newbie
 
Registered: Aug 2009
Posts: 7

Rep: Reputation: 0
ACL problem? permission denied issue!


Hi I'm studying for RHCT and try to solve ACL problems. I did everything but when a user tries to reach a file from another user's directory I get permission denied message. I want to show you something:
tristan@fc2 tristan]$ setfacl -m u:tippy:rwx,g:lensmen:rwx pizza

[tristan@fc2 tristan]$ setfacl -m mask::r-- pizza

[tristan@fc2 tristan]$ getfacl --omit-header pizza
user::rw-
user:axel:rw- #effective:r--
user:tippy:rwx #effective:r--
group::r--
group:lensmen:rwx #effective:r--
mask::r--
other::r--

It seems ok, but when tippsy tries to read file in user axel's directory I get permission denied message. I tried it without mask, but result was same. Please help me, what did I do wrong? I applied "chmod 700 /home/axel/" before setfacl command as shown in Michael Jang's RHCE book, mount and remount /home with acl, wrote acl command in /etc/fstab/
 
Old 10-08-2009, 12:37 AM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
/etc/fstab is only read at startup or if you issue

mount -a

after editing it.

Anyway, no need for all that. So long as the partition has acls enabled, if you set an acl at the cmd line, it will take effect immediately.
 
Old 10-14-2009, 02:54 PM   #3
doublejoon
Member
 
Registered: Oct 2003
Location: King George, VA
Distribution: RHEL/CentOS/Scientific/Fedora, LinuxMint
Posts: 370

Rep: Reputation: 44
Or
Code:
mount -o remount /home
Then run "mount" with no arguments.

ACL should show up on the /home partition

Last edited by doublejoon; 10-14-2009 at 02:55 PM.
 
Old 10-15-2009, 05:35 AM   #4
deadeyes
Member
 
Registered: Aug 2006
Posts: 609

Rep: Reputation: 79
Quote:
Originally Posted by doublejoon View Post
Or
Code:
mount -o remount /home
Then run "mount" with no arguments.

ACL should show up on the /home partition
did this solve it?

I dont quite understand your first remark.
/etc/fstab will be read if you do
mount /home
 
Old 10-15-2009, 11:09 PM   #5
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
Actually, by default, RHEL5 creates HDD mounts with acl option turned on at install time.
However, if you've got a disk mounted that doesn't have acls enabled, its

mount -o remount,acl /home

'mount' with no options only mounts a disk that is not currently mounted. You have to force a remount (above) to change the settings on a mounted disk.
 
Old 10-16-2009, 05:47 PM   #6
teamgsi
LQ Newbie
 
Registered: Aug 2009
Posts: 7

Original Poster
Rep: Reputation: 0
thank you for your responses. I was trying to solve questions about ACLs. here is the situation:
Q:Set up ACL list on /home, set up project.test on mike's home directory. Configure ACL on project.test to allow user donna to read this file.

I created the file as user mike, then changed the ACL settings of project.test file by using:
chmod u+rwx /home/mike/project.test
chmod g+rwx /home/mike/project.test
chmod o-rwx /home/mike/project.test
then I use: setfacl -m user:donna:r-- /home/mike/project.test
when I use getfacl command i get:
user:rwx
user:donna:r--
group:rwx
mask:rwx
other:---

however when I login as donna and try to read the file by "cat" or open it by "vi" I get permission denied message.
by the way the output of ls -ld /home/mike/project.test :
-rwxrwx---+ 1 mike mike ...... /home/mike/project.test

Please help me, I dont know what I did wrong!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
SSH permission denied Issue sachinh Linux - General 7 09-09-2009 06:58 AM
netpbm install issue - permission denied scsa20 Linux - Software 2 07-18-2009 11:55 AM
NeroLinux issue - permission denied Fill Linux - Software 4 10-25-2007 04:35 PM
permission denied using rsh (security not an issue) Singist Linux - Networking 1 04-04-2006 02:22 PM
Permission Denied Issue (concerning IMAP) BtySgtMajor Linux - Newbie 2 01-10-2006 03:19 PM

LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise

All times are GMT -5. The time now is 12:48 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration