FC4: Where is dm-crypt? And modprobe? And insmod?

Comments, suggestions and questions about Linux Format magazine and the coverdiscs

Moderators: ChrisThornett, LXF moderators

FC4: Where is dm-crypt? And modprobe? And insmod?

Postby WoofDef » Tue Oct 25, 2005 12:09 pm

Thank you for providing FC4 with LXFS02.

But *where* is dm-crypt? FC4 is supposed to have dm-mod and dm-crypt enabled as modules. I've installed cryptsetup-luks and util-linux, but entering

# dmsetup targets
..> dmsetup: command not found

and the cryptsetup command does not exist either.

EDIT: *Where* is modprobe ? insmod?
When I tried to install modutils, yum just updated mod-init-tools. So I assume modutils was installed.
Still no modprobe.

Maybe I'm missing something here since I'm used to Debian (not Fedora), but I selected the Desktop + Development install options, so I thought I'd get a full bag of module utilities with the latter.
WoofDef
 
Posts: 7
Joined: Tue Oct 25, 2005 11:48 am

RE: FC4: Where is dm-crypt? And modprobe? And insmod?

Postby Nigel » Tue Oct 25, 2005 12:39 pm

Have you tried
Code: Select all
/sbin/lsmod

I think most of the commands you are "missing" are in /sbin or /usr/sbin, and by default that isn't part of the PATH for normal users.
Hope this helps,

Nigel.
User avatar
Nigel
LXF regular
 
Posts: 1141
Joined: Fri Apr 08, 2005 8:03 pm
Location: Gloucestershire, UK

RE: FC4: Where is dm-crypt? And modprobe? And insmod?

Postby WoofDef » Tue Oct 25, 2005 12:42 pm

Thanks for the prompt response. Yes, I has just worked that out via google.

Any idea why on earth /sbin isn't in PATH by default?

Must be a reason but it seems idiotic - unless it's to discourage normal users from running "system" (root user) commands, but if so, why not restrict execute perms and do it properly?

And if I'm not mistaken, binaries get stuck all over the place in linux so merely being in /usr/bin or /sbin doesn't always mean what it's supposed to anyway ...
WoofDef
 
Posts: 7
Joined: Tue Oct 25, 2005 11:48 am

RE: FC4: Where is dm-crypt? And modprobe? And insmod?

Postby Nigel » Tue Oct 25, 2005 12:56 pm

Yes, it's to discourage normal users from running system commands. The permissions will (usually) be set to stop normal users running these commands as well, but having them somewhere that isn't in the normal user's path also means they don't show up when the user does a "which" command.
User avatar
Nigel
LXF regular
 
Posts: 1141
Joined: Fri Apr 08, 2005 8:03 pm
Location: Gloucestershire, UK

RE: FC4: Where is dm-crypt? And modprobe? And insmod?

Postby WoofDef » Tue Oct 25, 2005 1:21 pm

Thanks. I still think it's annoying, so I've added /sbin to PATH in /etc/profile
WoofDef
 
Posts: 7
Joined: Tue Oct 25, 2005 11:48 am


Return to Magazine and coverdiscs

Who is online

Users browsing this forum: Yahoo [Bot] and 0 guests

cron