I added a whole slew of apps to my favorites and lost the ‘Shutdown’ option…every time I try to shutdown in the Terminal I am told I must be logged in as Root to do so…I can’t figure out how to do this
I’m a newbie to Linux but a CNE 5 -haven’t used it 10 years- an MCP and A+ certified
I’ve searched local help and SuSe’s site and I can’t find anything
I’ve only spent a couple of hrs on this and have had SuSe 11.2 installed since last Sunday
> What lwfinger said. Also, if you want to do a bit of work as root in a
> terminal, you can use “su” (“superuser”):
> su -
> The “-” after “su” isn’t strictly required under Suse, but other Linux
> distros might not set up the environment if you don’t use it, so I do it
> out of habit.
Actually “su” stands for “substitute user”. It is possible to use su or sudo
to execute a command(s) as any valid user. See: man su or http://en.wikipedia.org/wiki/Su_(Unix)
“We’re all in this together, I’m pulling for you.” Red Green
Absolutely correct. My bad. In fact, when I was running Zimbra, I routine had to “su zimbra” to start and stop services.
@hcw: The - is strongly recomended. As a security measurement (and for your own convenience) you should use root’s environment and not that of the user. The user’s environment could contain pitfalls.
I said that in another thread and got scolded, as I recall. Suse does switch you to root’s environment, or so I was told. But I agree with you: it’s free, it’s easy, and it’s cross-distro, so Stephen uses “su -” and anyone who doesn’t like it is NOT invited to my birthday party, so there.
This is on openSUSE 10.3. It shows that the users environment is deleted when we use the -.
The *man *page does not provide too much details, but refers to the *info *pages. From there:
-' -l’ --login' Make the shell a login shell. This means the following. Unset all environment variables except TERM’, HOME', and SHELL’ (which
are set as described above), and USER' and LOGNAME’ (which are
set, even for the super-user, as described above), and set PATH' to a compiled-in default value. Change to USER's home directory. Prepend -’ to the shell’s name, intended to make it read its
login startup file(s).
I do not think openSUSE broke the implementation of su. I do not see any prove of it and the above example about the environment variable *TTT *shows otherwise.
In any case, I will continue with my ceterum censeo: use su - !!!
And about my birthday party, it is within a month. Thus I have decide very quickly who I invite. Hope you are mong them.
But first: off for a week of skiing!
‘exit’ will shut down the current session in a terminal. if you are running a GUI, KDE now has a little blue icon at the bottom right. this will bring up the screen saver and lock the session. I’m not aware of any hot keys in pure terminal mode. In a GUI you can easily define a key to log out
No, they are not the same but that’s not the essential difference. You can also use sudo to give you a superuser session, just do sudo bash or sudo su.
The first difference is that sudo expects a command to be specified on the command line itself, whereas su starts an interactive shell by default. Having said that, you can also get su to run a single command, by using the -c option.
The second difference is that sudo consults /etc/sudoers to see if the combination of command, user and host gets special treatment. For instance, some commands may require a password and some not. su has no such subtlety, you either get to run as the substitute user or not depending on whether you pass the uid check and authentication check.
> Sorry…I forgot to add that I’m using GNOME not KDE
i’ve not used gnome in a while but, try:
-right click desktop
-pick “Lock Session”
-when you come back it will expect your password
it is about as secure as your password…unless ‘they’ wanna shutdown
and boot from a live CD, mount your drives and read at will (unless
you encrypted them, and then a few thousand years to crack (if you use
a long enough hash))…
knowing you said you could spell Novell, etc i think you probably
might be able to use one of these hints to solve some of your
mysteries (from a previous post of mine, see):