[Solved]Can anyone tell me why -H flag with sudo doesn't switch to the target user's home directory?
I have checked the man page ,which says :
The -H (HOME) option sets the HOME environment variable to the homedir of
the target user (root by default) as specified in passwd(5). By default,
sudo does not modify HOME
But I have tried below command:
as you can see ,it still stays in the /root and doesn't change to user wanglei's home directory which is /home/wanglei, what am I missing ,please help me
Hi all,
First of all, i am so sorry about my bad level in English writing.
I have some problem in linux and i hope the experts of this forum to help me if they have enough time to reply to me.
I have a scenario of configuring NIS and NFS in Redhat Linux environment such that user can login... (0 Replies)
Hi,
I've created solaris user which has both FTP and SFTP Access. Using the "ftpaccess" configuration file options "guest-root" and "restricted-uid", i can restrict the user to a specific directory. But I'm unable to restrict the user when the user is logged in using SFTP.
The aim is to... (1 Reply)
Hi everyone:
I have a big trouble, I need create a script that must switch user and then must execute
certain commands, sadly neither my user nor the second user have no privileges
for sudo, I've tried everything but seems su doesn't accept input redirection, please help me, it's very... (8 Replies)
I am trying to figure out a one liner to toggle a flag variable. eg.
FLAG=0
Is there a way to use sed to toggle above example between 0 and 1. That is if run with flag set to zero it would change it to one if run again it would set it to zero.
I thought I had it figured but the... (6 Replies)
I'm configuring a sudo Runas_Alias in the sudoers file on a hp-ux 11.31 system. The goal is to allow some hp-ux accounts to sudo to a service account and run commands as that user. Here's the related sudoers entries:
User_Alias DMSTAFF = %dmstaff
Runas_Alias DMALIAS = dmadmin
DMSTAFF ... (2 Replies)
Hii all,
i create the user
useradd -d /home/kk kk
passwd kk
when i tried to login to kk
i get a error user directory doesn't exist
then i tried
useradd kkk
passwd kkkwhen i tried to login to kkk
i get the same error user directory doesn't exist. (4 Replies)
Hi all
I wanted to change the home dir for a user, but when using smh :
SMH->Accounts for Users and Groups->Local Users->Modify User
----------------------------------------------------------------------------------------------------------------------------------------------
* Required... (8 Replies)
Good Afternoon,
I'm trying userdel -r username on Solaris 9 and getting
UX: userdel: ERROR: unable to find status about home directory: No such file or directory
I see the user's home directory and getent passwd shows the user
Anybody know what's causing it? (2 Replies)
Hello,
I've just started using a Solaris machine with SunOS 5.10.
After the machine is turned on, I open a Console window and at the prompt, if I execute a pwd command, it tells me I'm at my home directory (someone configured "myuser" as default user after init).
... (2 Replies)
Discussion started by: egyassun
2 Replies
LEARN ABOUT DEBIAN
sb2-config
sb2-config(1) sb2-config man page sb2-config(1)NAME
sb2-config - scratchbox2 configuration tool
SYNOPSIS
sb2-config [OPTION]... [COMMAND [PARAMS]]
DESCRIPTION
sb2-config is used to set and display configuration of existing targets.
OPTIONS -d default_target
This option sets the default sb2 target. The name of the target will be written to your $HOME/.scratchbox2/config file.
-l lists all available targets in your system. The names listed can be used as a parameter to the -d option.
-h Display short help.
-v Show version of this tool.
-t target
select target to be used with commands (below)
COMMANDS
showtarget
show default target.
showlog
show configuration log
showenv
show target-specific environment variables
setenv VARIABLE VALUE
set target-specific environment variable. The value becomes effective when sb2 is executed.
clearenv VARIABLE
set clearing for target-specific environment variable
unsetenv VARIABLE
remove target-specific environment variable
EXAMPLES
$ sb2-config -d diablo41_armel
This command sets your default target to be diablo41_armel.
$ sb2-config -l
This example lists all installed targets in your host. The names listed can be used as a parameter to the -d option.
SEE ALSO sb2(1), sb2-init(1), sb2-show(1)AUTHOR
Lauri Leukkunen
2.2 17 December 2010 sb2-config(1)