LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
LinkBack Search this Thread
Old 02-08-2012, 11:18 AM   #1
jnreddy
Member
 
Registered: May 2008
Location: INDIA
Distribution: RHEL
Posts: 151

Rep: Reputation: 15
ACL for root filesystem


Hi friends and Gurus,

I need to perform a herculean task it may seems strange but now boll is in my court.

here is my task...

one of my user want ACL on root filesytem...yes acl for / filesystem. root is not in lvm. and also we have another filesystem named /ora which is vxfs file system my user want ACL for that also i mean /ora.

doesn't it seem strange..i never did that, but my user is insisting to do that.

its a production box they may give 2 or 3 hours downtime to perform the task
i googled a lot but i found steps to configure acl for files,folders and other filstems but not for root.

i tried the below steps.

[root@linuxnode1 /]# uname -a
Linux linuxnode1.my.com 2.6.18-194.el5 #1 SMP Tue Mar 16 21:52:39 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux

[root@linuxnode1 /]# fdisk -l

Disk /dev/sda: 85.8 GB, 85899345920 bytes
255 heads, 63 sectors/track, 10443 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 * 1 64 514048+ 83 Linux
/dev/sda2 65 1339 10241437+ 83 Linux
/dev/sda3 1340 2614 10241437+ 83 Linux
/dev/sda4 2615 10443 62886442+ 5 Extended
/dev/sda5 2615 3889 10241406 83 Linux
/dev/sda6 3890 5164 10241406 83 Linux
/dev/sda7 5165 6439 10241406 83 Linux
/dev/sda8 6440 6700 2096451 82 Linux swap / Solaris
/dev/sda9 6701 6827 1020096 83 Linux

first step : mount -t ext3 -o acl /dev/sda1 /
second step : [root@linuxnode1 ~]# vi /etc/fstab (i added acl in fstab)
LABEL=/ / ext3 acl 1 1
LABEL=/home /home ext3 defaults 1 2
LABEL=/tmp /tmp ext3 defaults 1 2
LABEL=/usr /usr ext3 defaults 1 2
LABEL=/var /var ext3 defaults 1 2
LABEL=/opt /opt ext3 defaults 1 2
LABEL=/boot /boot ext3 defaults 1 2
tmpfs /dev/shm tmpfs defaults 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
sysfs /sys sysfs defaults 0 0
proc /proc proc defaults 0 0
LABEL=SWAP-sda8 swap swap defaults 0 0

third step : [root@linuxnode1 /]# ls -l /
total 162
drwxr-xr-x 2 root root 4096 Jan 26 03:48 bin
drwxr-xr-x 4 root root 1024 Jan 25 03:11 boot
drwxr-xr-x 14 root root 4220 Feb 9 03:32 dev
drwxr-xr-x 101 root root 12288 Feb 9 04:03 etc
drwxr-xr-x 3 root root 4096 Oct 1 2009 home
drwxr-xr-x 11 root root 4096 Jan 26 03:47 lib
drwxr-xr-x 7 root root 4096 Jan 26 03:47 lib64
drwx------ 2 root root 16384 Jan 25 03:04 lost+found
drwxr-xr-x 2 root root 4096 Feb 9 03:31 media

url i folowed :http://www.softpanorama.org/Access_control/acl.shtml

verify that the permissions have been set and that the file has an ACL:

ls -l foo
-rwxrw— + 1 winsor staff 0 Oct 3 14:22 foo

but i cant see the '+' symbal for my / filesystem.. while executing the steps i didn't get any errors.

any help is appreciated....Thanks in advance..

Thanks & regards
JNREDDY

Last edited by jnreddy; 02-08-2012 at 06:36 PM. Reason: spelling mistakes correction
 
Old 02-08-2012, 02:08 PM   #2
Berhanie
Senior Member
 
Registered: Dec 2003
Distribution: Fedora
Posts: 1,492

Rep: Reputation: 144Reputation: 144
if you're using rhel, then i think your filesystem is already using acls. you will see it when you run dumpe2fs.
 
Old 02-12-2012, 01:51 AM   #3
jnreddy
Member
 
Registered: May 2008
Location: INDIA
Distribution: RHEL
Posts: 151

Original Poster
Rep: Reputation: 15
Thank you...Berhanie

Thank you for your reply.....can you plz provide some more information...


Thanks & Regards
JNREDDY.
 
Old 02-12-2012, 08:17 AM   #4
Berhanie
Senior Member
 
Registered: Dec 2003
Distribution: Fedora
Posts: 1,492

Rep: Reputation: 144Reputation: 144
see here.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Why does the ACL of a file created under a directory differ from the default ACL sctebnt Linux - Security 5 12-02-2011 08:13 AM
[SOLVED] how can i remount root filesystem as read/write after modify readonly-root file jcwkyl Linux - Newbie 3 12-21-2010 10:40 PM
iptables acl versus cisco acl id_viorel Linux - Security 1 04-09-2008 05:00 AM
acl applied but says you need to login as root sravanth.svk Linux - Security 1 05-24-2007 09:28 AM
Encrypted Root Filesystem HOWTO and /dev filesystem tmillard Linux From Scratch 0 10-18-2004 03:58 PM


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

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration