Telnet ping: permission denied (are you root?)

Any questions about the Command Line Interface can be placed here!
Forum rules
We've moved! Head over to Synology Community (community.synology.com) to meet up with our team and other Synology enthusiasts!
pz1
Knowledgeable
Knowledgeable
Posts: 374
Joined: Fri Oct 19, 2007 9:56 am
Location: Netherlands

Telnet ping: permission denied (are you root?)

Unread post by pz1 » Sun Jan 13, 2013 2:09 pm

Logged in via Telnet as root, I can ping other connected devices on my network. If logged in as the standard admin, or an other user I do get the error message 'permission denied'. On my Ubuntu 10.4 installation all users can ping.
Is there a setting in Synology that I should change to allow this?
Thank you for your attention
DS-207+ 128MB; DSM 3.1-1594
HDD: WDC WD10EADS-00L5B1 (01.01A01)
LMS 7.7.1 via SSODS4.9.1mod2 (by j-r)
DS212+ 512MB; DSM 4.3-3827 Update 7
LMS 7.7.2-007 via Synology spk

pz1
Knowledgeable
Knowledgeable
Posts: 374
Joined: Fri Oct 19, 2007 9:56 am
Location: Netherlands

Re: Telnet ping: permission denied (are you root?)

Unread post by pz1 » Sun Jan 13, 2013 3:05 pm

Found two awkward possible solutions sofar:
1 Recompile busybox with some special parameters set (to complex for me at the moment)
2 chmod +s /bin/busybox (dangerous option because you open busybox for all users if I understood correctly)

PS: sudo is not an option for my application
DS-207+ 128MB; DSM 3.1-1594
HDD: WDC WD10EADS-00L5B1 (01.01A01)
LMS 7.7.1 via SSODS4.9.1mod2 (by j-r)
DS212+ 512MB; DSM 4.3-3827 Update 7
LMS 7.7.2-007 via Synology spk

User avatar
maxxfi
Compiler
Compiler
Posts: 6794
Joined: Sun Dec 27, 2009 12:13 pm
Location: Espoo, Finland

Re: Telnet ping: permission denied (are you root?)

Unread post by maxxfi » Sun Jan 13, 2013 11:28 pm

If you notice, actually in Ubuntu they went for solution 2: in order to allow everybody to run ping command, the binary is executed as root (which makes it a potentially exploitable entrypoint).

One other option could be to install 'inetutils' package from IPKG, as it contains a separate binary for ping, so that at least you won't need to grant root privileges to busybox.
No longer using Synology NAS, moved to more open source solutions.
DS-106j > DS-210j > DS-411

pz1
Knowledgeable
Knowledgeable
Posts: 374
Joined: Fri Oct 19, 2007 9:56 am
Location: Netherlands

Re: Telnet ping: permission denied (are you root?)

Unread post by pz1 » Mon Jan 14, 2013 9:06 am

maxxfi wrote:One other option could be to install 'inetutils' package from IPKG, as it contains a separate binary for ping, so that at least you won't need to grant root privileges to busybox.
Thanks, that might indeed be the most desirable solution. I do have IPKG installed, so I'll give it a try.
DS-207+ 128MB; DSM 3.1-1594
HDD: WDC WD10EADS-00L5B1 (01.01A01)
LMS 7.7.1 via SSODS4.9.1mod2 (by j-r)
DS212+ 512MB; DSM 4.3-3827 Update 7
LMS 7.7.2-007 via Synology spk

Locked

Return to “Command Line Interface”