Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
The instructions for centOS6 are wrong. I needed to use: “passwd <username>” instead of “sudo <username> passwd” per the guide.
On Centos, worked as expected. Thanks. Quick question.
Sometimes I like to SFTP into the server and add a folder or a file. For instance, into /etc/nginx dir to add sites to sites-enabled. The problem I am running into is that this new user does not have the rights to add a file into /etc/nginx, I get a permission error. I could ssh in and su, then add the files as root, but I am trying to come up with a solution that is both secure and allows for easier interaction via SFTP when I am in the mood for that.
Any suggestions? I imagine some sort of chown and chmod might be in order.
… here’s what I did to make working via the command line and via SFTP a bit easier within the webroot and various config directories.
chown -R username:nginx /srv chown -R username:nginx /etc/nginx
Seems to be working.
I tried your instructions for Ubuntu 12.04 to no avail. Creating the user worked fine, but your instructions for giving the user root permissions did not work.
On Ubuntu 12.10 I needed to also do
adduser <username> sudo
to enable sudo access to my new username
On ubuntu 12.04 as root I simply did:
sudo adduser bardi sudo adduser bardi sudo
Very easy if you know how!
Hi,
Please fix the syntax for setting password for new user in CentOS. It is supposed to be <pre>sudo passwd newuser</pre>
On Ubuntu to get sudo access all you need to do is add the user to the sudo group which can simply be done by typing: sudo adduser newuser sudo adduser newuser sudo
You don’t have to manually edit the sudoers file.
I did this now I cannot get back into the /usr/sbin/visudo area. It says:
sudo: >>> /etc/sudoers: syntax error near line 19 <<< sudo: parse error in /etc/sudoers near line 19 sudo: no valid sudoers sources found, quitting sudo: unable to initialize policy plugin
and then it goes back to the prompt.
Any suggestions? Did I add a user the wrong way and if so is there a way to just edit the file I just modified and remote the line I added which, according to the error was entered wrong (obviously)