Bug 105479 - "yast2 foo_module" doesn't check for root user
Summary: "yast2 foo_module" doesn't check for root user
Status: RESOLVED FIXED
Alias: None
Product: SUSE LINUX 10.0
Classification: openSUSE
Component: YaST2 (show other bugs)
Version: Beta 2
Hardware: Other All
: P5 - None : Normal
Target Milestone: ---
Assignee: Arvin Schnell
QA Contact: Klaus Kämpf
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-08-18 12:45 UTC by Stephan Binner
Modified: 2005-08-18 19:09 UTC (History)
1 user (show)

See Also:
Found By: Other
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stephan Binner 2005-08-18 12:45:09 UTC
E.g. "yast2 online_update" doesn't abort with an error that it has to be run 
as root nor asks for the root password to switch to root user (but will later 
fail after pulling packages when trying to install them).
Comment 1 Arvin Schnell 2005-08-18 12:49:38 UTC
That's why yast2 is not in the search path of the non-root user.
Comment 2 Stephan Binner 2005-08-18 12:59:13 UTC
Try "you" for a user (hint: defaults to "/usr/bin/yast online_update in Beta 
2). 
 
So a proper fix for this is not to be expected? Joking? 
Comment 3 Arvin Schnell 2005-08-18 13:08:27 UTC
The alias is in fact stupid for non-root users.  Rudi, I would
suggest to add the alias only for root.
Comment 4 Stephan Binner 2005-08-18 13:32:43 UTC
Dumb question for better understanding: Why does "yast2" as user only show the 
modules not requiring root access and why do the YaST modules shown within KDE 
control center offer to switch to administrator mode? 
 
Couldn't they also show a non-helping error dialog if any to the user at run 
time? ;-) 
Comment 5 Ruediger Oertel 2005-08-18 14:20:19 UTC
changing to "su - -c /sbin/yast2 online_update" 
 
back to arvin for the rest of the story 
Comment 6 Arvin Schnell 2005-08-18 14:27:32 UTC
I don't see any need for further actions.
Comment 7 Stephan Binner 2005-08-18 19:09:44 UTC
Honestly, how much time would it take to implement such a check (maybe not for 
10.0 anymore but 10.1 then) or whom would it hurt?