Hot answers tagged

6

You can recover or set root password without knowing the current one by starting mysql without loading the grant-tables. This is the cli to do this: $ sudo mysqld_safe --skip-grant-tables Now you can log in as root without a password and perform all commands, as in this case, set the root password as root. $ sudo mysql --user=root mysql This is the ...


3

There is no 'root' account available for login by default. It is locked in a default installation. You don't state where your install runs from, so I am going to assume it's running from your remote user account on the server. You can enable the root account if you wish, but there's more 'secure' approaches to do this, than just enabling the account. ...


3

If you run as root sudo is not necessary, if you run as normal user and want to do something which requires elevated privileges then you need it. Beside the fact that you shouldn't run the whole time as root for various reasons, such as security etc. This is why the tor browser wont start when you run as root. Sudo means "super user do" so you will only be ...


2

What you are trying to do does not work from within a running system ... so follow these steps : Boot from a GParted Live media, either GParted Live or Ubuntu Live media. Right click the swap partition and select swap off in case it is mounted. As there is no data on sda2 and sda5, first delete sda5 and then sda2. Resize sda1, right click the partition and ...


2

SL use RPM and Ubuntu use Dppkg for package management so is unlikely. Can you compile from source? Do you know the library dependencies?


2

For me, both poweroff nor reboot needs a password on Ubuntu 16.04 . However, for this to occur, I had to create a user account called "foo", for example, and then ssh to localhost as either that user or as myself. When I do this, I do need to authenticate myself. It seems to recognize another user is logged in. For example, I get this message: User ...


1

An alternative to giving everyone write access to the /root directory is to use acls to give the jenkins user access to the /root directory. ~# setfacl -m "u:jenkins:rwx" /root Most Ubuntu installs already have Access Control Lists enabled, but you might have to first install the acl package. Additionally, you can and the R flag to make the action ...


1

You do not need to change the root user. For purpose of data operations we usually create a new mysql user and grant certain privileges to this user (generally limited to a database). This can be done in following ways: From terminal mysql -u root -p and enter the root password. Then, in the terminal you will see as mysql> indicating you are ...


1

In Linux and Unix, everything is a file. Directories are files, files are files and devices are files. Devices are usually referred to as a node; however, they are still files. All of the files on a system have permissions that allow or prevent others from viewing, modifying or executing. In first one -rw-r--r-- the permissions are as follows for user, ...


1

Note: This will not work if "Easy Install" option in VMware is used, which will automatically set up Ubuntu with a default set of settings. When prompted to create the Virtual Machine, select the Ubuntu version in the OS type, but don't specify the ISO and use "I will install the operating system later", do not automatically power up the VM, and edit the ...



Only top voted, non community-wiki answers of a minimum length are eligible