[lsb-discuss] [Bug 1429] New: desktop test pkg scripts should use full paths to sysadmin utils
bugzilla-daemon at freestandards.org
bugzilla-daemon at freestandards.org
Fri Jul 7 13:49:26 PDT 2006
http://bugs.linuxbase.org/show_bug.cgi?id=1429
Summary: desktop test pkg scripts should use full paths to
sysadmin utils
Product: Runtime Tests
Version: 3.1
Platform: All
OS/Version: All
Status: NEW
Severity: blocker
Priority: P1
Component: lsb-desktop-test
AssignedTo: lsb-test at freestandards.org
ReportedBy: mats at freestandards.org
CC: lsb-bugs at freestandards.org
the lsb-test-desktop preinstall and postuntinstall scripts call useradd,
groupadd, userdel and groupdel. They should call them by full paths, the LSB
already requires all four of these to be in /usr/sbin so it's safe to do so.
This lets the scriptlets work even if $PATH isn't root's usual one, as would
happen if you are running as a normal user and "su" to install the package
(rather than "su -"). A recent install failed to create the test group/user
for this reason, and there was no error message, so it was a surprise when five
tests failed as a result.
In general terms, the LSB specifies the full path to certain sysadmin utilities
specifically so that scripts can avoid the problem just mentioned.
--
Configure bugmail: http://bugs.linuxbase.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the lsb-discuss
mailing list