Tag Info

New answers tagged

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! ...


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, ...


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 ...


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.


0

I see two possibilities: boot from recovery mode (from there you can try to reverse what you previously did) pres ctrl-alt-f2 (or whatever combination works for you) and work from CLI mode (since my guess is that the fault for the the black screen is from GUI). In both cases I would try to exclude the other account and try to recreate it from the CLI ...


0

Expire Account Let the account expire to disallowing a user from logging in from any source including ssh: # disallow peter from logging in sudo usermod --expiredate 1 peter This is how you can reenable that account: # set expiration date of peter to Never sudo usermod --expiredate "" peter Lock a Password To disable / lock the password of user ...


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 ...


-4

Ubuntu is designed like that. It happens that if you need root privileges to run an application the files created with that could need root privileges as well to be opened. you can sudo -i to become root and do your stuff, or change the privileges of the files sudo chmod 666 <yourfile> to read them


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 ...


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: &#8211; – Category: Pd (Punctuation, Dash) ...


0

It is possible to create a user with the @ sign in their name but it isn't recommended, for example, running the adduser command to add a user with an @ sign will throw this error: adduser: Please enter a username matching the regular expression configured via the NAME_REGEX[_SYSTEM] configuration variable. Use the `--force-badname' option to relax this ...


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 ...


0

After a long search I've found what the problem was. When I installed my system I added this line in my fstab: /dev/disk/by-uuid/5E521E0E521DEC11 /mnt/data auto nosuid,nodev,nofail,x-gvfs-show 0 0 I changed it to: /dev/disk/by-uuid/5E521E0E521DEC11 /mnt/data auto nosuid,nodev,gid=1000,umask=007,nofail,x-gvfs-show 0 0 My groupid is 1000 and the umask ...


0

Press windows key and type user in the search box which will list Users and Groups. It will open the Users Settings interface. You can change permissions for individual users by clicking on the user and then click on advanced settings. In Change Advanced User Settings interface, select the User Privileges and choose your own restrictions for the user. You ...


2

Change /mnt/data owner and group to yourself like this: sudo chown basement21.basement21 /mnt/data And allow only you to read and write, and your personal group to only read: sudo chmod 750 /mnt/data


1

From the Launcher click on System Settings -> under the System heading click User Accounts. A User Accounts window will open and you can select a user to view that user's account information, including Account Type, Language, Password (requires authentication), Automatic Login (ON/OFF), and Last Login. To view the user(s) information from the terminal ...


1

The solution below assumes your friend is not an expert, trying to hack your computer to find a way to look into your data. It is however a reasonable threshold, to prevent unintended access (mounting) to a specific partition or drive. An option, that also can be used as a more temporary solution on any user account is the following: Add the following ...


1

To achieve the desire result as you indicated: Call your system to recognize /dev/sdb to belong to you: sudo adduser secretdrive sudo chown secretdrive:secretdrive /dev/sdb sudo adduser [your-username] secretdrive sudo chmod 770 /dev/sdb Explanation: assign a new system name to your drive: /dev/sdb chown-ize your drive to the system username of ...



Top 50 recent answers are included