Slackware This Forum is for the discussion of Slackware Linux.
|
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
04-07-2005, 10:50 AM
|
#1
|
Member
Registered: Nov 2002
Location: Lone Tree, CO
Distribution: Xubuntu Gutsy
Posts: 174
Rep:
|
ACL support in slackware for Samba box
I am building a network server that will also act as a Windows File server and PDC. I would like to support security on the file server for windows clients, hence I need ACL support. Right now I have ReiserFS on my /dev/md0 array that I plan on using for the file share.
Mount does not recognize the "acl" option for ReiserFS. I also mounted a XFS partition to test with and the setfacl call:
setfacl -m g:mygroup:rwx somefile
Fails with an "Operation not supported" error.
I am running the Sata 2.4.29 kernel on my server box and the Scsi 2.4.29 kernel on my testing box (VMWare PC).
I tried to install the 2.6 generic kernel on the VMPC but as I thought it might, it failed when trying to mount /dev/sda1 for the root drive in lilo (the vmlinuz-generic-2.6.10 must not have SCSI support enabled).
In the kernel source for 2.4.29 I found XFS modules, but nothing about ACL. Grep'ing the .config file for the kernel, I also found no ACL options.
Before spending hours trying different kernels and hard drive settings and such, was wondering if someone has enabled ACL support for reiserfs or just using XFS in slackware 10.1 (or older)?
I found a similar question at:
http://www.linuxquestions.org/questi...&highlight=acl
But this did not as about XFS support or specify kernels and it did not get any replies.
|
|
|
04-07-2005, 01:14 PM
|
#2
|
Senior Member
Registered: Apr 2002
Location: Arbovale, WV
Distribution: Slackware
Posts: 1,761
Rep:
|
To use ACL you need to use 2.6.8 or newer (i think it is 8) kernel. You need to enable it in the kernel too or have it compiled as a module and then load the module.
I am not sure what is compiled in the generic kernel by default. But you might want to try to compile the latest stable kernel from source. An excellent how to is here, http://www.linuxquestions.org/questi...threadid=49035 .
I have compiled kernels a few time. When it fails to load of something like that. It has always been my fault. Not saying that you messed up or anything like that.
Last edited by tangle; 04-07-2005 at 01:15 PM.
|
|
|
04-07-2005, 03:16 PM
|
#3
|
Member
Registered: Nov 2002
Location: Lone Tree, CO
Distribution: Xubuntu Gutsy
Posts: 174
Original Poster
Rep:
|
Kernel panic
Installed the generic, modules and source kernel packes from slack 10.1.
Followed the initrd instructions in the readme.
Ran "make xconfig" on the kernel 2.6.10 source.
Turned some things off.
Turned on extended file attributes with ACL for reiserFS
Ran "make"
Ran "make modules_install"
Copied "System.map" from kernel source root dir to "/boot/System.map-custom-2.6.10"
Copied "arch/i386/boot/bzImage" to "/boot/vmlinuz-custom-2.6.10"
"vim /etc/lilo.conf"
Added:
image = /boot/vmlinuz-custom-2.6.10
root = /dev/sda1
label = Linux2.6Cust
read-only
"lilo"
"shutdown -r now"
Choose the new kernel...
Got past the SCSI support, was loading NET, then "ACPI wakeup devices:"
Then got:
Code:
ACPI: (supports S0 S5)
Kernel panic - not syncing: Vfs: Unable to mount root fs on unknown-block(8,1)
|
|
|
04-07-2005, 03:21 PM
|
#4
|
Member
Registered: Nov 2002
Location: Lone Tree, CO
Distribution: Xubuntu Gutsy
Posts: 174
Original Poster
Rep:
|
If I try my old 2.4.29 kernel (which is still in my lilo configuration), it dies the same way:
Code:
APCI wakeup devices:
USB
ACPI: (supports S0 S5)
VFS: Cannot open root device "801" or unkown-block(8,1)
Please append a correct "root=" boot option
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(8,1)
|
|
|
04-07-2005, 03:41 PM
|
#5
|
Member
Registered: Nov 2004
Location: Columbus, Ohio
Distribution: Slackware-Current / Debian
Posts: 795
Rep:
|
When compiling a new kernel, make sure that your root filesystem is compiled in (not selected as a module).
Also ensure that you compile in Vesa Framebuffer, or your screen will show no text on boot
|
|
|
04-08-2005, 10:33 AM
|
#6
|
Member
Registered: Nov 2002
Location: Lone Tree, CO
Distribution: Xubuntu Gutsy
Posts: 174
Original Poster
Rep:
|
Had to compile the buslogic driver into the kernel. Also, put the reiserfs into the kernel instead of a module. This caused a difference for when updating the int rd.
Documented from README.initrd:
mkinitrd -c -k 2.6.10 -m reiserfs
With reiserfs not as a module, had to use:
mkinitrd -c -k 2.6.10
This make me wonder if I could have used:
mkinitrd -c -k 2.6.10 -m reiserfs,buslogic
This should have theoretically loaded the reiserfs and buslogic modules before mounting the hard drive.
|
|
|
04-08-2005, 10:48 AM
|
#7
|
Member
Registered: Jun 2002
Location: Nova Scotia
Distribution: Debian (home), Kubuntu 7.04 (work)
Posts: 265
Rep:
|
Have you enabled "ReiserFS extended attributes" in the kernel config? I think you need that in order to use ACL.
See http://acl.bestbits.at/
|
|
|
04-08-2005, 11:20 AM
|
#8
|
Member
Registered: Nov 2002
Location: Lone Tree, CO
Distribution: Xubuntu Gutsy
Posts: 174
Original Poster
Rep:
|
Working
Whoops, forgot to say it is working now.
For those that are following or have similar problems:
My setup for these steps:
Slackware 10.1 ISOs #1 and 2 extracted to /var/install (so slackware is /var/install/slackware)
[list=1][*]cd /var/install/testing/packages/linux-2.6.10[*]installpkg kernel-generic-2.6.10.tgz[*]installpkg kernel-modules-2.6.10.tgz[*]installpkg kernel-source-2.6.10-noarch-1.tgz[*]cd /usr/src/linux-2.6.10[*]make config (or "make xconfig", or "make menuconfig", etc.)[*]scsi device? then mark your scsi driver to be included in the kernel[*]sata device? then mark your sata driver to be include in the kernel[*]mark xfs and/or reiserfs as included instead of modules[*]mark reiserfs extended attribute support for access control lists as included[*]make [*]wait...[*]wait some more...[*]make modules_install[*]waiting again...[*]cp System.map /boot/System.map-custom-2.6.10[*]cp arch/i386/boot/bzImage /boot/vmlinuz-custom-2.6.10[*]cd /boot[*]mkintrd -c -k 2.6.10 (see my above note on using -m possibly if you kept the above drivers as modules)[*]vim /etc/lilo.conf[*]add at the bottom (customize for your own use):
Code:
image = /boot/vmlinuz-custom-2.6.10
root = /dev/sda1
label = Linux2.6Cust
read-only
[*]lilo[*]reboot[*]XFS will have built in support for acl[*]For your reiser fs, mount something like this:
Code:
mount -t reiserfs -o defaults,acl,user_xattr /dev/sdc1 /mnt/sdc1
[*]setfacl -m u:testuser:rw testfile[/list=1]
That was all. Working now. Thanks all for the feedback.
|
|
|
04-27-2005, 10:27 AM
|
#9
|
LQ Newbie
Registered: Apr 2005
Location: Guadalajara, Mexico
Posts: 10
Rep:
|
where download acl utils?
i not have setfacl in my slack10.1, where i can download?
|
|
|
04-27-2005, 12:48 PM
|
#10
|
Member
Registered: Nov 2002
Location: Lone Tree, CO
Distribution: Xubuntu Gutsy
Posts: 174
Original Poster
Rep:
|
setfacl is part of the slackware distribution
You need to have the "slackware/a/xfsprogs-2.6.13-i486.tgz" package installed
|
|
|
All times are GMT -5. The time now is 09:25 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|