Su command windows 2008




















Not an IT pro? Internet Explorer TechCenter. Sign in. United States English. Ask a question. Quick access. Search related threads. I've noticed a lot of other people mentioning variations on the runas command and how you need to know the users password, which is true, but I don't think that anyone has quiet answered the question. Here's the way I go about it:. Note: A new command prompt will open CP2 , this is the user who are you trying to login as.

Depending on the computer, it may create a profile for the user if they have never logged onto there before. You can save yourself the hassel later by keeping the command prompt windows open for later use. You should now be back into the orginal administrator account. You can do a quick check by tapping the Windows key and looking for the current user panel. There's no built-in mechanism in Windows to do this.

It can be done, but you're going to have to have something written to do what you want, and you're probably going to have to muck around with undocumented APIs. Microsoft doesn't make what you want to do easy because it's not the way they want you using NT. If you need to be logged-on as a user to troubleshoot their issues, in most cases you're going about it in a sub-optimal way. If you need to "setup email" or other such activities "as the user", you should be writing scripts or taking advantage of built-in functionality Group Policy Administrative Templates, preferences, etc to do your dirty work for you.

That code should give you a fairly good idea of what you'll need to do. I haven't tried the program, but it looks like it's going about everything in the right way. The command line options are available here. This will not work without knowing the users password. I do not believe there is a way in Windows to operate under a users account without the password due to how the Security Identifiers are loaded. Just a guess. But not even administrators have the privilege by default.

Although I do not have personal experience with some of the sudo solutions mentioned on this site, I highly recommend nonadmin started by the excellent Aaron Margosis. It is a huge help as you roll out limited users.

I mainly jumped with something since everyone else is saying use Runas. All the users that are members of the admin group can use sudo command for performing root tasks. By typing sudo su - a user can become root user without typing password for root. The sudo command will ask for the user's own password. Look at the above snapshot, bash is asking for sssit password not for root password, after that we are logged in as root user.

JavaTpoint offers too many high quality services. Mail us on [email protected] , to get more information about given services. Please mail your requirement at [email protected] Duration: 1 week to 2 week. Next Topic Linux User Management. Reinforcement Learning. R Programming. React Native. Python Design Patterns.

Python Pillow. Python Turtle. Using su to temporarily act as a root user allows you to bypass this restriction and perform different tasks with different users. Note : A root account is a master administrator account with full access and permissions in the system. Because of the severity of changes this account can make, and because of the risk of it being compromised, most Linux versions use limited user accounts for normal use.

If a username is specified, su defaults to the superuser root. Simply find the user you need and add it to the su command syntax. If you omit a username, it will default to the root account. Now, the logged-in user can run all system commands. This will also change the home directory and path to executable files. Note : If you are having issues with authentication, you can change the root or sudo password in a couple of simple steps. To run a specific command as a different user, use the —c option:.



0コメント

  • 1000 / 1000