I made this widget and don't know where it is

openSUSE 12.3
KDE 4.10.5

I was following Tsu’s slide show about how to configure SSDs and some of the steps have to do with having a better monitoring tool.

This is brand new to me as it involved using the source code, compiling and what ever else happens as the result of a make.
I am doing this as practice on a test PC.

These few statements are the last in the command window and I don’t know what to do next.
They also might be totally incorrect as I am sure there are considerations dealing with my user id and (su -), or other things re file placement.
The reason I mention that is that it’s a real mystery that files seem to disappear after I do “su -”
Does it change my location ?

Linking CXX shared module lib/plasma_applet_sm_driveio.so
[100%] Built target plasma_applet_sm_driveio
  0%] Built target plasma_applet_sm_driveio_automoc
[100%] Built target plasma_applet_sm_driveio
Linking CXX shared module CMakeFiles/CMakeRelink.dir/plasma_applet_sm_driveio.so
Install the project...
-- Install configuration: "RelWithDebInfo"
-- Installing: /usr/lib/kde4/plasma_applet_sm_driveio.so
-- Installing: /usr/share/kde4/services/plasma-applet-sm_driveio.desktop
Acer:/home/hexdump/build # 

Yes with su - you get full root credentials including the root home (/root) and paths with su (no dash) you get some root permissions and you still have some of your user information like some of the paths and the home

hextejas wrote:
>
> openSUSE 12.3
> KDE 4.10.5
>
> I was following Tsu’s slide show about how to configure SSDs and some of
> the steps have to do with having a better monitoring tool.
>
> This is brand new to me as it involved using the source code, compiling
> and what ever else happens as the result of a make.
> I am doing this as practice on a test PC.
>
> These few statements are the last in the command window and I don’t know
> what to do next.
> They also might be totally incorrect as I am sure there are
> considerations dealing with my user id and (su -), or other things re
> file placement.
> The reason I mention that is that it’s a real mystery that files seem
> to disappear after I do “su -”
> Does it change my location ?
>
>
> Code:
> --------------------
> Linking CXX shared module lib/plasma_applet_sm_driveio.so
> [100%] Built target plasma_applet_sm_driveio
> 0%] Built target plasma_applet_sm_driveio_automoc
> [100%] Built target plasma_applet_sm_driveio
> Linking CXX shared module CMakeFiles/CMakeRelink.dir/plasma_applet_sm_driveio.so
> Install the project…
> – Install configuration: “RelWithDebInfo”
> – Installing: /usr/lib/kde4/plasma_applet_sm_driveio.so
> – Installing: /usr/share/kde4/services/plasma-applet-sm_driveio.desktop
> Acer:/home/hexdump/build #
>
> --------------------
>
>
run the command pwd before and after su - and you will realize that your
current/working directory has changed .


$pwd
/home/dartmouth/Downloads
$su -
Password:
linux-8zs1:~ # pwd
/root
linux-8zs1:~ # exit
logout
$pwd
/home/dartmouth/Downloads
$


GNOME 3.6.2
openSUSE Release 12.3 (Dartmouth) 64-bit
Kernel Linux 3.7.10-1.16-desktop

On 2013-11-06 22:26, hextejas wrote:
> The reason I mention that is that it’s a real mystery that files seem
> to disappear after I do “su -”
> Does it change my location ?

Yes, of course, that’s what the dash is for. And more changes. :slight_smile:


Cheers / Saludos,

Carlos E. R.
(from 12.3 x86_64 “Dartmouth” at Telcontar)

man su

SDB:Login as root - openSUSE

A quick google of “su” got me to a page talking about it.
It has this paragraph.

When su is used while in console mode (i.e., with a text-only screen display), the original user's session cannot, of course, be used on the same machine (because the su session occupies the entire screen). However, when su is used in a terminal window (i.e., a text-only window in a GUI), only that terminal window and programs that are started from it are run with the new user's account (e.g., root), and all other programs, including any other terminal windows, can continue to be run by the original user.

I don’t know what the difference is that they are trying to explain re console or terminal.
So please don’t try to explain it to me.
I think a simple answer to my simple question for my simple brain.

When I do an “su -” within the only window I know, (Red as root, black as me) is that in effect as if I had logged in as root ?
That seems to be what I am seeing with the missing files, IE a different PWD.
This Linux critter sure is different.

On 2013-11-07 23:16, hextejas wrote:
>
> A quick google of “su” got me to a page talking about it.
> It has this paragraph.
>
>
> Code:
> --------------------
> When su is used while in console mode (i.e., with a text-only screen display), the original user’s session cannot, of course, be used on the same machine (because the su session occupies the entire screen). However, when su is used in a terminal window (i.e., a text-only window in a GUI), only that terminal window and programs that are started from it are run with the new user’s account (e.g., root), and all other programs, including any other terminal windows, can continue to be run by the original user.
>
> --------------------

Don’t you believe it.

Instead, just run “man su” and there you have all the information:


-, -l, --login
make the shell a login shell

A login session, ie, the same as if you had logged in that terminal (or
console or whatever) as that user (root if you don’t specify one).
That’s all, no more no less.

If you want, you can compare the environment between both types. Run
“set” and dump the result to a file with a pipe - you already know how
to do that. Do it for “su” and “su -”, and compare both files: what you
see is all there is to know. :slight_smile:


Cheers / Saludos,

Carlos E. R.
(from 12.3 x86_64 “Dartmouth” at Telcontar)