* [linux-lvm] running lvm tool from user application script
@ 2002-04-04 22:27 bo
2002-04-05 3:22 ` Denie Andriessen
0 siblings, 1 reply; 2+ messages in thread
From: bo @ 2002-04-04 22:27 UTC (permalink / raw)
To: linux-lvm
[-- Attachment #1: Type: text/plain, Size: 862 bytes --]
LVM gurus,
I have been playing with the LVM tool for a while under ROOT privilledge.
Today, I tried to run "lvscan" & "pvscan" from one of my user script
to show LVM status to user. I realized I could not run them having the attached errors.
Q1: Is that true I can not run "vgscan", "lvscan",... under user applciation
which does not have "root" right?
Q2: I want to run these utilities from my CGI script for Web GUI.
Any suggestions?
Thanks in advance,
BM
ATTACH)-------------------------------------------------------------------
Error2)
mooasun>$cat /etc/*tab
mooasun>$anacrontab fstab lvmtab raidtab
mooasun>$crontab inittab mtab
mooasun>$lvscan
mooasun>$lvscan -- ERROR: "/etc/lvmtab" doesnot exist; please run vgscan
Error1)
mooasun>$vgscan
mooasun>$vgscan -- LVM driver/module not loaded!
[-- Attachment #2: Type: text/html, Size: 2544 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [linux-lvm] running lvm tool from user application script
2002-04-04 22:27 [linux-lvm] running lvm tool from user application script bo
@ 2002-04-05 3:22 ` Denie Andriessen
0 siblings, 0 replies; 2+ messages in thread
From: Denie Andriessen @ 2002-04-05 3:22 UTC (permalink / raw)
To: linux-lvm
Hi,
Well, I don't really think that's an issue having to do anything with LVM.
It's something to do with 'security'. On most systems 'plain' users hVe
quite modest rights in the etc directory, and for quite good reasons. You
get that because the mode of /etc/lvmtab doesn't allow you to write to it,
as forinstance vgscan would like to do..
letting a user run those programs sounds like a pretty bad idea, but if you
still want to go ahead, there's at least 2 ways around it, 1) allow the
webuser to sudo that command (see sodu/sudoers), or just get a cron job on
root, that runs those commands, and dumps the output in a place where your
CGI thingy can read it..
Denie
----- Original Message -----
From: bo
To: linux-lvm@sistina.com
Sent: Friday, April 05, 2002 6:27 AM
Subject: [linux-lvm] running lvm tool from user application script
LVM gurus,
I have been playing with the LVM tool for a while under ROOT privilledge.
Today, I tried to run "lvscan" & "pvscan" from one of my user script
to show LVM status to user. I realized I could not run them having the
attached errors.
Q1: Is that true I can not run "vgscan", "lvscan",... under user applciation
which does not have "root" right?
Q2: I want to run these utilities from my CGI script for Web GUI.
Any suggestions?
Thanks in advance,
BM
ATTACH)-------------------------------------------------------------------
Error2)
mooasun>$cat /etc/*tab
mooasun>$anacrontab fstab lvmtab raidtab
mooasun>$crontab inittab mtab
mooasun>$lvscan
mooasun>$lvscan -- ERROR: "/etc/lvmtab" doesnot exist; please run vgscan
Error1)
mooasun>$vgscan
mooasun>$vgscan -- LVM driver/module not loaded!
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-04-05 3:22 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-04-04 22:27 [linux-lvm] running lvm tool from user application script bo
2002-04-05 3:22 ` Denie Andriessen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox