Sysop: | Amessyroom |
---|---|
Location: | Fayetteville, NC |
Users: | 21 |
Nodes: | 6 (0 / 6) |
Uptime: | 28:39:54 |
Calls: | 139 |
Files: | 91 |
Messages: | 42,688 |
i log in to x session as user1 on host1
from within a xterm i want to change to user2 on host1 and run x programs
the current way i do this is ssh user2@host1
does using ssh on the same host use encryption
is there another way to do this
i log in to x session as user1 on host1
from within a xterm i want to change to user2 on host1 and run x programs
the current way i do this is ssh user2@host1
does using ssh on the same host use encryption
is there another way to do this
i feel like this has been hashed over here previously
i just can't find the answer
session optional pam_xauth.so
simple is better
thanks
does ssh destinguish between "ssh host1" and "ssh localhost"
does ssh destinguish between "ssh host1" and "ssh localhost"
I never found an official documentation about "su -p", just found it myself, but I read, "su -" shall do the same. It does not.
I never found an official documentation about "su -p", just found it myself,
but I read, "su -" shall do the same. It does not.
When you write something like this, can you accompany it with a
reference? The essential package util-linux's man page seems to
contradict whatever it was you found and read:
i log in to x session as user1 on host1
from within a xterm i want to change to user2 on host1 and run x programs
the current way i do this is ssh user2@host1
does using ssh on the same host use encryption
is there another way to do this
i feel like this has been hashed over here previously
i just can't find the answer
I don't use zsh, so I don't quite understand what "compinit" means.
But, just looking at the su(1) man page:
-m, -p, --preserve-environment
Preserve the entire environment, i.e., do not set HOME, SHELL, USER
or LOGNAME. This option is ignored if the option --login is
specified.
The main issue here is likely to be the HOME variable. If you're running
a shell as root, but with HOME=/home/florent or whatever, then some of
the programs you start may create new dot files inside /home/florent/.
These files will be owned by root (because the programs are running as
root). Then, at some point in the future, if you run those same programs
as florent, you won't be able to change the contents of the dot files.
(You would, however, be able to remove them.) (...)
Which I am inclined to believe, although I'm reluctant to try 'su -p'
for fear of creating a mess in my normal user setup:
~ % su -p
Password:
zsh compinit: insecure directories and files, run compaudit for list.
Ignore insecure directories and files and continue [y] or abort compinit [n]? ^C
emacs is notorious for that. In fact, if you install a new system, and
`sudo emacs <some config file>`, then emacs will create its own config directory (.emacs/) in your home directory owned by root. I quickly