Go Back   { mindfrost82.com } > Gadget Corner > Tech Newsgroups > Linux > Suse

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-22-2008, 10:39 PM
anonuserca@yahoo.com
 
Posts: n/a
how to give a user "superuser" privileges?

My original test user name, John, was created as I installed OpenSUSE
11. Then, I created a test user named Jane.
As I installed my software, when logged in as Jane, it says
that the user Jane doesn't have superuser privileges.

I went to Yast, and set Jane to belong to the group "root".
But the software still says that Jane doesn't have superuser
privileges.

How do I allow user Jane to have superuser privileges on OpenSUSE 11?
Reply With Quote
  #2 (permalink)  
Old 07-22-2008, 11:01 PM
Nikos Chantziaras
 
Posts: n/a
Re: how to give a user "superuser" privileges?

anonuserca@yahoo.com wrote:
> My original test user name, John, was created as I installed OpenSUSE
> 11. Then, I created a test user named Jane.
> As I installed my software, when logged in as Jane, it says
> that the user Jane doesn't have superuser privileges.
>
> I went to Yast, and set Jane to belong to the group "root".


Never do that. It's best to undo it right now.


> But the software still says that Jane doesn't have superuser
> privileges.
>
> How do I allow user Jane to have superuser privileges on OpenSUSE 11?


You don't. You give Jane the root password instead.
Reply With Quote
  #3 (permalink)  
Old 07-22-2008, 11:31 PM
anonuserca@yahoo.com
 
Posts: n/a
Re: how to give a user "superuser" privileges?

On Jul 22, 4:01*pm, Nikos Chantziaras <rea...@arcor.de> wrote:
> anonuse...@yahoo.com wrote:
> > My original test user name, John, was created as I installed OpenSUSE
> > 11. *Then, I created a test user named Jane.
> > As I installed my software, when logged in as Jane, it says
> > that the user Jane doesn't have superuser privileges.

>
> > I went to Yast, and set Jane to belong to the group "root".

>
> Never do that. *It's best to undo it right now.
>
> > But the software still says that Jane doesn't have superuser
> > privileges.

>
> > How do I allow user Jane to have superuser privileges on OpenSUSE 11?

>
> You don't. *You give Jane the root password instead.


I logged in as user Jane, I did a "sudo su"
and then, entered in the superuser password.

As root, I installed that software, and then, I got the following
error:

Application initialization failed: no display name and no $DISPLAY
environment variable

Any suggestions how to fix this?
Reply With Quote
  #4 (permalink)  
Old 07-22-2008, 11:35 PM
houghi
 
Posts: n/a
Re: how to give a user "superuser" privileges?

Nikos Chantziaras wrote:
>> How do I allow user Jane to have superuser privileges on OpenSUSE 11?

>
> You don't. You give Jane the root password instead.


Or use sudo to use the password of the user and not root.

houghi
--
All opinions are not equal. Some are a very great deal more robust,
sophisticated and well supported in logic and argument than others.
Reply With Quote
  #5 (permalink)  
Old 07-23-2008, 12:00 AM
Nikos Chantziaras
 
Posts: n/a
Re: how to give a user "superuser" privileges?

anonuserca@yahoo.com wrote:
> [...]
> I logged in as user Jane, I did a "sudo su"
> and then, entered in the superuser password.


Use "su" when you need to login as root.

Use "sudo" only when you want to run a program as root.

That means, don't use "sudo su" :) It works, but is not necessary. To
run the installation script of your CAD program (install.sh for
example), you just do: sudo ./install.sh

After the program terminates and you are returned to the shell, you're
still Jane, not root.


> As root, I installed that software, and then, I got the following
> error:
>
> Application initialization failed: no display name and no $DISPLAY
> environment variable
>
> Any suggestions how to fix this?


Yes, run it as Jane, not root. You need root privileges to install
software (because installing software modifies the system), not to use
software. Unless the software itself *requires* you to use it as root
(I doubt it). A very important rule in Unix is: don't run programs as root!

So, to sum it up. If you need to login as root (this is called creating
a "root shell", you type:

su -

To simply run a program as root without actually logging in as root, you
use:

sudo someprogram

for text programs, and:

kdesu someprogram

for graphical programs.

To run a program, forget root. You run it as a normal user (unless the
program itself needs to modify the system in some way, like YaST for
example).
Reply With Quote
Reply

  { mindfrost82.com } > Gadget Corner > Tech Newsgroups > Linux > Suse


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 07:39 AM.


Powered by vBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
© 1999-2008 mindfrost82.com v11.0


Sponsors:
Deals On Products | Online Advertising | Personal Finance | Secured Loans | Bad Credit Loan



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109