New answers tagged root
You should create directory first if /lib/udev doesn't exist mkdir -p /lib/udev
As quoted by the official Ubuntu LostPassword documentation, do the following to login to Ubuntu: Reboot your computer. Hold Shift during boot to start GRUB menu. Highlight your image and press E to edit. Find the line starting with "linux" and append rw init=/bin/bash at the end of that line. Press Ctrl + X to boot. Type in passwd . Set your password. ...
If you open a terminal and enter man chown you wil; be presented with nifty documentation about how to change ownership of files and folders. Basically, you want to issue the command sudo chown <new_owner> <path_to_file>
To show you in detail "who you are", you may use the command id: $ id uid=1000(alphawolf) gid=1000(alphawolf) groups=1000(alphawolf),4(adm),24(cdrom),25(floppy),27(sudo),29(audio),30(dip),44(video),46(plugdev),107(netdev),113(lpadmin),128(sambashare),132(wireshark),2000(humans-bc-aw) As you see, depending on your account the output can get pretty long. ...
If you are using bash (the default), your prompt will tell you if you are acting as root. If it ends in a '$' you are running as a normal user. If it ends in a '#' you are running as root. Additionally, whoami will show who you are. If you can suddenly edit files that used to require sudo access, my first suspicion would be that you've somehow managed ...
You only need to use root to edit files owned by root or other users. Any files that you create or own can be edited by you without using root. E.g. run the following commands cd $HOME touch test.txt nano test.txt The above commands navigated to your home directory (your personal area), created a file called test.txt, then entered the file using an ...
I was in horrible situation when i changed permission from root to "user", of system folder "usr", i wont be able to logged in as root and wont be able to do important things. but with help of my experienced colleagues, i solved the problem as below. 1.go to recovery mode by keep pressing "Esc" while booting the system. 2.select root option in long list ...
Technically, no one answered your question. I appreciate that they think their way is better (probably is), but here's another approach (in case you have to su - some time and have the same issue); [Log into a system] $ sudo su -;exit # echo "do things" # exit When you exit from root, the original user will also log out since it's continuing it's last ...
Because that is not the intended usage of Nautilus manager. It is intended to manage user related files. Like your documents. Because we do not use a "root" account and editing files with your admin account (aka. "sudo") will change the permissions and then break stuff. Famous files are .xsession-errors and .XAuthority in your home. If those change into ...
No. Running anything as root is dangerous for your entire system and therefore something that should only be done by experienced administrators. If that was available as simple right-click option everywhere, you can imagine how many applications would be run as root without necessity. That would be a security problem (malware or attacked/infected ...
I changed the owner of the android studio directory from root to my user account and it worked. Here is the command, where user should be your user name: sudo chown - R user:user /opt/android-studio
You can create script with these steps : sudo nano script_name.sh Type some commands on it to execute later, and then make it executable sudo chmod +x script_name.sh And then you can run it by : sudo ./script_name.sh
You haven't run ./myscript as you say in your question, you have run ./ myscript and you error message was bash: ./: Is a directory Note, the correct syntax is: No space character between the path ./ and the name of your script.
If you would like to delete all of the contents of the trash you could use sudo and remove the entire directory. Remember to remake the directory so it doesn't cause any problems. The code is: sudo rm -rf /home/User_Name/.local/share/Trash && mkdir /home/User_Name/.local/share/Trash That will do it all with one entry into the terminal.
I disagree with the existing answer (and a hundred answers around the Internet). It is possible to run Apache2 as something other than root. That's not how it is by default though and it's that default behaviour that ships with Ubuntu that is making things really difficult for you. All its scripts and configuration expect to use the ...
Using sudo with access configured only to the apache control scripts is generally considered best practice. Doesn't completely eliminate the transient "root" state at the beginning but any security auditor that doesn't understand this is not worth the money they are getting paid. It's also fairly straightforward to install a custom version of Apache in ...
The Short Answer: You cannot make the first master Apache process start as non-root for the master process in a sane way. This is because the master process is required to run as superuser in order to bind to port 80 (HTTP) and 443 (HTTPS), and to access configuration files (in /etc/apache2/ by default) so the workers know what they're supposed to do. ...
Use usermod command ideally - -l is the option you're after in this particular case. If you want also your home dir renamed accordingly - options -d and -m may be of your interest.
just two steps: 1.edit the /etc/passwd file ,replace priyank to Alex ,then save 2.edit the /etc/shadow file ,replace priyank to Alex,then save reboot and enjoy it
Go to your adobe air installation location via the terminal (for me it's /opt/Adobe AIR/Versions/1.0). In here you'll find the "Adobe AIR Application Installer". Run this "Adobe AIR Application Installer" with sudo (sudo ./Adobe\ AIR\ Application\ Installer). Then you'll be given a window to select your ".air" file. Just select your file and click ok. Then ...
Top 50 recent answers are included