companydirectorylist.com  Global Business Directories and Company Directories
Search Business,Company,Industry :


Country Lists
USA Company Directories
Canada Business Lists
Australia Business Directories
France Company Lists
Italy Company Lists
Spain Company Directories
Switzerland Business Lists
Austria Company Directories
Belgium Business Directories
Hong Kong Company Lists
China Business Lists
Taiwan Company Lists
United Arab Emirates Company Directories


Industry Catalogs
USA Industry Directories














  • What are the differences between su, sudo -s, sudo -i, sudo su?
    sudo su Asks your password, becomes root momentarily to run su as root sudo su - Asks your password, becomes root momentarily to run su - as root So in this case you are running su using sudo and you don't have to know root's actual password The results are same as su and su -
  • What is the difference between su - and su root? [duplicate]
    8 su - switches to the superuser and sets up the environment so that it looks like they logged in directly su root switches to the user named root and doesn't simulate directly logging in If the superuser is named root, then su and su root are equivalent (and don't simulate directly logging in), as are su - and su - root (which do)
  • Why do we use su - and not just su? - Unix Linux Stack Exchange
    The main difference is : su - username sets up the shell environment as if it were a clean login as the specified user, it access and use specified users environment variables, su username just starts a shell with current environment settings for the specified user If username is not specified with su and su -, the root account is implied as default
  • su - user Vs sudo su - user - Unix Linux Stack Exchange
    Secondly: sudo -i and su - do the same thing (su - is equivalent to su --login), using different authorization mechanism: su verifies the password for the root account, while sudo verifies the password for your current user account and also verifies that your current user account is allowed to run administrative operations according to the etc sudoers policy This is the reason sudo is
  • su vs sudo -s vs sudo -i vs sudo bash - Unix Linux Stack Exchange
    su is equivalent to sudo -i and simulates a login into the root account Your working directory will be root, and it will read root's profile etc The prompt will change from $ to #, indicating you have root access sudo -s launches a shell as root, but doesn't change your working directory sudo bash where bash is command to run with sudo
  • What is the difference between su - , sudo bash and sudo sh?
    su -: This will change your user identifier and inherit the environment variables as if you had logged in with that user Normally you would use the format su - <userid> to login as the user If you drop the "userid" it assumes you are trying to login as root - which you can't (unless you change the root password) sudo bash sudo sh: Anything after the sudo is a program to run - so in these
  • Is there a single line command to do `su`? - Ask Ubuntu
    Here's why: If you write a password in a command like su <username> -p <password>, it would be stored in plain text in your bash history This is certainly a huge security issue If you need to run commands with su (or sudo) in an automated way, write a shellscript containig the commands without su or sudo and run su <username> script sh
  • Whats the difference between sudo su - and sudo su
    28 When you provide a double-hyphen the experience you will have is identical to if you had just executed sudo su without any hyphen Passing a single hyphen is identical to passing -l or --login The man page for su describes the behavior as: Provide an environment similar to what the user would expect had the user logged in directly




Business Directories,Company Directories
Business Directories,Company Directories copyright ©2005-2012 
disclaimer