Hi,
I get error when
sudo -u user1 -s -H
(AD: coro.int) Password:
cannot access parent directories
I do not get error when
sudo -u user1 -i -H
Can you tell me why do i not get error when using -i
option instead of -s
option with sudo
.
$ uname -a
SunOS mymac 5.10 Generic_150400-26 sun4v sparc sun4v
-i [command] run a login shell as target user
-s [command] run a shell as target user
Basically, can u make it easy for me(layman) to understand the above -i and -s options as to how they are different ?
Please reply in context of the error i am getting and why the pwd
command does not yield output with the -s
option when it does with the -i
option.