-
User privaleges to shutdown, control net devices
I'm loving Knoppix a lot, but being new to Debian there are two things I can't figure out how to do. I asked on a #debian but the answer seemed rather complex and I couldn't find anything on google.
I want to allow a regular user account (mine in this case) to be able to shutdown and do ifup and ifdown commands to bring up interfaces. How would I go about doing this the Debian way? I know I can use sudo or just su to root, but it's bothersome to type my password all the time for that (I'm using a notebook). I tried to change the owner / group of /etc/network/interfaces, but then pump complained. Any ideas?
-
Senior Member
registered user
As root:
Code:
chmod 777 /etc/network/ifstate
Also- you might want to edit your /etc/sudoers file so that it looks like so:
Code:
<your username> ALL=NOPASSWD: ALL
That way when you use the sudo command you won't have to enter a password everytime. After that, you can do sudo ifdown -a and it will just do it- no password required.
-
Thanks
Changing the octal mode of /etc/network/ifstate didn't help at all
- pump still complained that it must be run as root. Changing the /etc/sudoers worked great though! Thanks
Similar Threads
-
By JockVSJock in forum General Support
Replies: 5
Last Post: 07-03-2004, 08:09 PM
-
By jbrush in forum General Support
Replies: 0
Last Post: 04-15-2004, 12:29 AM
-
By rafial in forum Hardware & Booting
Replies: 1
Last Post: 11-13-2003, 03:28 AM
-
By iamanewbie in forum General Support
Replies: 3
Last Post: 10-27-2003, 10:13 AM
-
By _CaLeB_ in forum Hardware & Booting
Replies: 5
Last Post: 03-31-2003, 06:20 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules

Intel Core i7-3770K 3.5 GHz Processor
$39.00

Intel Core i9-9900K SRG19 3.60GHz 16MB 8-Core LGA1151 B Grade CPU Processor
$175.00

INTEL CORE I7-870 SLBJG 2.93GHZ LGA1156 4 CORE CPU PROCESSOR
$23.00

(LOT OF 20) Intel Core i5-8400 CPU 2.80GHz Desktop Processor (SR3QT)
$700.00

AMD Ryzen 5 5500 Processor ( read Description)
$59.00

Intel Core i5-12500T SRL5W 2GHz 18MB 6 Core Socket LGA1700 Desktop CPU Processor
$114.99

Intel Core i7-9700 Octa-Core 3 GHz Desktop Processor LGA 1151
$79.99

Intel i7-8700 Coffee Lake 3.2GHz 6-Core Max Turbo 4.6GHz Processor
$67.99

motherboard CPU combo am4
$70.00

INTEL CORE I9-10940X X-SERIES PROCESSOR | 3.30GHZ | SRGSH
$179.99