Tag Info

Hot answers tagged

22

You must have copied the command from a webpage that uses strange formatting. That's not a normal minus, try this instead: sudo chown -R hduser:hadoop mongodbdata Specifically, the one I copied from your question is an en dash (U+2013): $ unicode -s – U+2013 EN DASH UTF-8: e2 80 93 UTF-16BE: 2013 Decimal: – – Category: Pd (Punctuation, Dash) ...


6

What is "root"? root is a user existing on every Linux system. To be more precise, it is a special user - the super user! root is the only user that has privileges to do everything. In contrast to the two types of user accounts you can create (administrator users and restricted users), it exists by default and can neither be renamed or deleted. Usually, ...


4

First, edit the /etc/sudoers only with visudo You can set the permission to the user joe for apt-get command only adding the following line: %joe your_hostname=(root):/usr/bin/apt-get Once logged in as joe, you can check the permissions: sudo -l Edit: The user will be able to use apt-get update, upgrade, install, etc; since those are just flags for ...


3

What you have is a free fall sensor, (accelerometer) whether it is failing, or giving erroneous data, I'm not sure. I recomend you black list the free fall sensor, and depending on how critical your hard disk drive space is, delete or clear the syslog file as well. sudo > /var/adm/sylog I am suspicious that there is another issue as well, that logs ...


3

You can create a script in /etc/profile.d/ to make aliases for all users: Create a file called 00-aliases.sh (or any other fancy name) in /etc/profile.d: gksu gedit /etc/profile.d/00-aliases.sh Put you aliases in this file. Example: alias foo='bar --baz' alias baz='foo --bar' Save the file Restart any open terminals to apply the changes. Enjoy! ...


2

you can use useradd command or adduser In Details: To create user "user1" sudo adduser user1 --home=/home/user1 --shell=/bin/bash --ingroup=GROUP Replace GROUP with the group you want to put the user in. --home specify the default home directory of the created user --shell specify the default shell of the created user When the command run you'll be ...


2

Those users are users created for OSSEC and you should not change them. They are disabled because you need not see them and need not use them. Very simple: this software locks down these users so a normal user can not mess with them. If someone knows your admin password and gets access you are in deep problems anyeways and a normal user can not change these ...


2

A dirty workaround would be to set your account to not prompt for sudo passwords, but that is not recommended for security purposes. if you type "sudo visudo" you should be able to add an entry for your user that looks like this: # User privilege specification root ALL=(ALL:ALL) ALL username ALL=NOPASSWD: ALL This may or may not work for the ...


2

You can set the setgid sticky bit on the directory to ensure that all new files in the directory will have their group set to the group of the directory. To do that, run chmod g+s DIRECTORY, where DIRECTORY is the name of your directory.


2

root is the user name or account that by default has access to all commands and files on a Linux or other Unix-like operating system. It is also referred to as the root account, root user and the superuser. So there will arise certain cases when you will have to be logged in as root user to run those commands. Do not worry it is simple. By default, the ...



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