LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Blogs
User Name
Password

Notices


Old

Simple script-command to mount partitions by label

Posted 08-15-2021 at 02:43 PM by the dsc (linux-related notes)

Largely based on this answer on askubuntu. I hope nothing atrocious results from some situation where it ends up trying to mount something a given user should not, or something. May require tweaking either the script or one's sudo permissions for the commands doing the hard work, I don't know how "default" my settings are.

Code:
#!/bin/bash

echo ${@} | while read input ; do 

for label in /dev/disk/by-label/${input} ; do 

label=$(basename
...
Member
Posted in Uncategorized
Views 621 Comments 0 the dsc is offline
Old

Misuse of sudo(8) and sudoers(5)

Posted 10-07-2016 at 06:46 AM by Turbocapitalist

The utility sudo(8) runs programs as another user. Frequently, that other user is root, but it does not have to be, the utility can also be used to downgrade privileges. Often it is mis-used to provide full root access to a group of users in place of su(1). However, sudo(8) was developed to give selective access to machines, following the principle of least privilege. It can achieve a very fine granularity of access, even allowing just specific programs or specific options for specific programs....
LQ Guru
Posted in Uncategorized
Views 5107 Comments 6 Turbocapitalist is online now
Old

Howto enable sudo in Debian

Posted 09-20-2012 at 11:21 AM by craigevil (craigevil's random words of wisdom)
Updated 09-21-2012 at 10:20 AM by craigevil

Debian unlike other distros like Ubuntu does not come with sudo enabled by default. That said it is easy enough to set it up.

How to setup sudo:

1) Use visudo to edit your sudoers file
2) Add your user to the sudo group
Code:
adduser foo sudo
3) Or you can use gksu, or kdesu on KDE.

Or you can follow the simple steps here:
Debian Reference Chapter 1. - http://www.debian.org/doc/manuals/de..._configuration
...
Senior Member
Posted in Uncategorized
Views 5724 Comments 0 craigevil is offline
Old

Enable ‘sudo’ in Fedora 15

Posted 07-02-2011 at 04:53 AM by dEnDrOn

Here is how you can enable ‘sudo’ in Fedora so that you don’t have to login as root everytime you need to run a command as root. Open up terminal and type in the following:

Code:
su #enter root password followed by this one
yum install nano
nano /etc/sudoers
Now, scroll down and you should see something like:

Code:
root    ALL=(ALL)	ALL
Just below that line, add this:

Code:
YOUR_USER_NAME_HERE    ALL=(ALL)	ALL
...
Member
Posted in Uncategorized
Views 1986 Comments 0 dEnDrOn is offline

  



All times are GMT -5. The time now is 02:45 AM.

Main Menu
Advertisement
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration