LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-12-2010, 05:57 AM   #1
ramesh14
Member
 
Registered: Apr 2008
Location: Hyderabad
Distribution: RHEL5,Fedora 8/9
Posts: 119
Blog Entries: 1

Rep: Reputation: 15
Question acl permissions problem


hi all
i m using rhel5
i m tring to implement acl's i created one partition mounted on directory /aclmount
created 3 users and group sales
created one file under mounted dir quotation
i tried this command
#sudo /usr/bin/setfacl -m -u:user1:rw- aclmount/quotation
i m geting this out put
setfacl: Option -m: Invalid argument near character 1

pleace guide me what i will do..

thanks in advance.
 
Old 03-12-2010, 06:03 AM   #2
Sayan Acharjee
Member
 
Registered: Feb 2010
Location: Chennai, India
Distribution: Manjaro
Posts: 624

Rep: Reputation: 64
Quote:
Originally Posted by ramesh14 View Post
hi all
i m using rhel5
i m tring to implement acl's i created one partition mounted on directory /aclmount
created 3 users and group sales
created one file under mounted dir quotation
i tried this command
#sudo /usr/bin/setfacl -m -u:user1:rw- aclmount/quotation
i m geting this out put
setfacl: Option -m: Invalid argument near character 1

pleace guide me what i will do..

thanks in advance.
That means /etc/fstab file is not edited to mount with acl option.
Edit the fstab file with acl first then try to remount it.


EDIT: Found the problem, your command is wrong.
it should be:
#sudo /usr/bin/setfacl -m u:user1:rw- aclmount/quotation [not -u]

Last edited by Sayan Acharjee; 03-12-2010 at 06:12 AM.
 
Old 03-12-2010, 06:14 AM   #3
ramesh14
Member
 
Registered: Apr 2008
Location: Hyderabad
Distribution: RHEL5,Fedora 8/9
Posts: 119

Original Poster
Blog Entries: 1

Rep: Reputation: 15
hi sayan_acharjee
i added the following line in /etc/fstab file
/dev/sda4 /aclmount ext3 defaults 0 0
and remount
#mount -o acl /dev/sda4 /aclmount
again run this command
#setfacl -m -u:user1:rw- /aclmount/quotation
but i getting same error
setfacl: Option -m: Invalid argument near character 1
please guide me..

thanks in advance.
 
Old 03-12-2010, 06:19 AM   #4
Sayan Acharjee
Member
 
Registered: Feb 2010
Location: Chennai, India
Distribution: Manjaro
Posts: 624

Rep: Reputation: 64
Quote:
Originally Posted by ramesh14 View Post
hi sayan_acharjee
i added the following line in /etc/fstab file
/dev/sda4 /aclmount ext3 defaults 0 0
and remount
#mount -o acl /dev/sda4 /aclmount
again run this command
#setfacl -m -u:user1:rw- /aclmount/quotation
but i getting same error
setfacl: Option -m: Invalid argument near character 1
please guide me..

thanks in advance.
Edit the line in the following manner:
Quote:
/dev/sda4 /aclmount ext3 defaults,acl 0 0
then:
Quote:
#mount -o remount,acl /dev/sda4
then issue the setfacl command again:
Quote:
#setfacl -m u:user1:rw- /aclmount/quotation
 
1 members found this post helpful.
Old 03-12-2010, 06:25 AM   #5
ramesh14
Member
 
Registered: Apr 2008
Location: Hyderabad
Distribution: RHEL5,Fedora 8/9
Posts: 119

Original Poster
Blog Entries: 1

Rep: Reputation: 15
hi sayan_acharjee
i got the solution
thank you...
 
Old 03-12-2010, 06:31 AM   #6
Sayan Acharjee
Member
 
Registered: Feb 2010
Location: Chennai, India
Distribution: Manjaro
Posts: 624

Rep: Reputation: 64
You are welcome
 
1 members found this post helpful.
  


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
permissions and acl zhjim Linux - Newbie 2 11-18-2009 07:02 AM
ACL effective permissions problem on file copies le_forban Linux - Newbie 4 07-09-2008 07:57 PM
ACl access permissions pramka SUSE / openSUSE 2 04-17-2008 12:24 PM
Where are ACL permissions saved? armandino Linux - Security 6 07-05-2007 11:46 PM
acl permissions linuxtesting2 Linux - General 0 10-25-2004 02:18 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:51 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