Hallo Ivanko,

Du schriebst am Thu, 17 Jan 2013 02:18:34 +0500:

> It still tries to rebuild the MSEgui units in teh root owwned
> /usr/lib/* and fails if the build attempt is initiated by a non-root
> user, see the attachment.

Which is alright, since a non-root user doesn't _have_ to be able to change
anything in a system directory. Either he has to attain root status by some
means like su or sudo, requiring him to legitimize himself, or to request
the system administrator to do it for him.
A regular user should perform a private install only in his private - and
thus owned by himself - home directory tree.
If you want a regular user with a sudo authorization to be able to perform
such installations, you should check the installer's "id", and request a
authorization if it's not 0. There are many ways to perform this, a simple
measure I used often looks like this:

if [ `id -u` != "0" ]; then
   exec sudo $0 "$@"
fi                                                                              
                              

This has to be the first executed statement in a script. Its effect should
be easily recognizable. It even works under X11 if sudo has been given a
uitable "askpass" helper program, either on the command line or by the
environment variable "SUDO_ASKPASS".

-- 
(Weitergabe von Adressdaten, Telefonnummern u.ä. ohne Zustimmung
nicht gestattet, ebenso Zusendung von Werbung oder ähnlichem)
-----------------------------------------------------------
Mit freundlichen Grüßen, S. Schicktanz
-----------------------------------------------------------


------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122712
_______________________________________________
mseide-msegui-talk mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk

Reply via email to