How do I set ifconfig, etc. for user but not sudo?

Questions about networking.
In the Original Post please also include the output of inxi -FNzxx
Deleted User 2764

How do I set ifconfig, etc. for user but not sudo?

Postby Deleted User 2764 » 24 Aug 2014 16:10

I am going to set up a "tech support" account so if the cable internet tech guy needs to test things at my computer, I can give him/her limited access to certain things. For example: Firefox Browser which only has links for the local cable home page, speedtest, etc. Useful online tools.

Also I'd like to set up point-and-clicks to things like Ping, ifconfig, netstat, etc. so that they can diagnose the network. Thing is, some of these (I know ifconfig for example) requires sudo and I don't want this account to be an admin account.

How would I go about setting some of these up? Are there gui-based equivelents that can be used?

BTW, as per the request in the forum topic description, below is my info:

Code: Select all

System:    Host: solydk-hp Kernel: 3.14-2-amd64 x86_64 (64 bit gcc: 4.8.3) 
           Desktop: KDE 4.13.3 (Qt 4.8.6) dm: lightdm Distro: SolydXK 1 testing 
Machine:   System: Hewlett-Packard product: HP Pavilion g7 Notebook PC v: 0791100000205610000620100
           Mobo: Hewlett-Packard model: 1845 v: 56.32 Bios: Insyde v: F.22 date: 11/22/2012
           Chassis: type: 10
CPU:       Dual core Intel Core i3-2350M (-HT-MCP-) cache: 3072 KB
           flags: (lm nx sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx) bmips: 9179 
           Clock Speeds: 1: 801 MHz 2: 810 MHz 3: 805 MHz 4: 800 MHz
Graphics:  Card: Intel 2nd Generation Core Processor Family Integrated Graphics Controller
           bus-ID: 00:02.0 chip-ID: 8086:0116
           Display Server: X.Org 1.15.1 drivers: intel (unloaded: fbdev,vesa) Resolution: 1600x900@60.0hz
           GLX Renderer: Mesa DRI Intel Sandybridge Mobile GLX Version: 3.0 Mesa 10.1.4 Direct Rendering: Yes
Audio:     Card Intel 7 Series/C210 Series Family High Definition Audio Controller 
           driver: snd_hda_intel bus-ID: 00:1b.0 chip-ID: 8086:1e20 
           Sound: Advanced Linux Sound Architecture v: k3.14-2-amd64
Network:   Card-1: Ralink Device 539a driver: rt2800pci v: 2.3.0 bus-ID: 01:00.0 chip-ID: 1814:539a
           IF: wlan0 state: up speed: N/A duplex: N/A mac: <filter>
           Card-2: Realtek RTL8101E/RTL8102E PCI Express Fast Ethernet controller
           driver: r8169 v: 2.3LK-NAPI port: 3000 bus-ID: 02:00.0 chip-ID: 10ec:8136
           IF: eth1 state: down mac: <filter>
Drives:    HDD Total Size: 640.1GB (7.7% used)
           ID-1: /dev/sda model: Hitachi_HTS54756 size: 640.1GB serial: J2180053F8NLRD
Partition: ID-1: / size: 288G used: 9.0G (4%) fs: ext4 dev: /dev/sda2 
           ID-2: /home size: 288G used: 26G (10%) fs: ext4 dev: /dev/sda3 
           ID-3: swap-1 size: 12.88GB used: 0.00GB (0%) fs: swap dev: /dev/sda1 
Sensors:   System Temperatures: cpu: 43.0C mobo: N/A 
           Fan Speeds (in rpm): cpu: N/A 
Info:      Processes: 241 Uptime: 2:30 Memory: 793.9/5883.8MB 
           Init: SysVinit v: 2.88 runlevel: 2 default: 2 Gcc sys: 4.9.0 alt: 4.4/4.6/4.7/4.8 
           Client: Shell (bash 4.3.111 running in konsole) inxi: 2.1.28 

User avatar
grizzler
Posts: 2153
Joined: 04 Mar 2013 15:45
Location: The Hague, NL

Re: How do I set ifconfig, etc. for user but not sudo?

Postby grizzler » 24 Aug 2014 17:30

The command line versions of many of these tools work for the user if you call them with the full path, i.e. /sbin/ifconfig, /sbin/route. Of course, trying to use them to set things will usually fail.
Alternatively, adding /sbin and /usr/sbin to the user's PATH should work as well.

I remember having a GUI app with networking functions on my system many years ago, but it's not there now and I can't remember what it was called, so no help there, I'm afraid.

But I wouldn't be surprised if the tech guy brought along his own laptop to test things. Over here, they always do.
Frank

SolydX EE 64 - tracking Debian Testing

Deleted User 2764

Re: How do I set ifconfig, etc. for user but not sudo?

Postby Deleted User 2764 » 24 Aug 2014 17:53

grizzler wrote:But I wouldn't be surprised if the tech guy brought along his own laptop to test things. Over here, they always do.
Not here. They mess with the customer's equipment and then give lip service acting like the customer don't know sh-- if they break the customer's equpiment (ie. "Oh, it's just not compatible, believe me, I've been in this business for years and I know this won't work with [fill in the blank]"). I had one tech when I had DSL browse the web on my computer to "test the connection and modem". He did not bring his own equipment. If you request it, don't be surprised if they do you'll see an unaffordable surcharge on the bill with the "installation" charges.

Thanks for the info, though. I can probably write scripts that will pop up the info that's needed and exit when a key is pressed. Maybe it's time for me to learn python and glade. :)


Return to “Networking”

Who is online

Users browsing this forum: No registered users and 2 guests