Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: approximately NixOS (http://nixos.org)
Posts: 1,900
Rep:
Consider using sudo. Sometimes for security reasons (not that it makes sense, but..) suid scripts are not acting as suid. Or write one-call-to-"system" C wrapper.
I don't want to give sudo access for all the users, they might meddle in my stuff. Can I use sudo for that script only? Or please can you give me an example on how to use it?
Thanks.
Unfortunately i have been mistakeing, with a normal user i get:
Code:
testa@MainThinkTank:~$ bpierderi
Password:
Sorry, user testa is not allowed to execute '/bin/ping -n -w4 -i 0.02 -c 100 -q
ip.ip.ip.ip' as root on MainThinkTank.rdsnet.ro.
Distribution: approximately NixOS (http://nixos.org)
Posts: 1,900
Rep:
I mean you should have 2 scripts: one a user can run under sudo and one which runs it under sudo. I still recommend you to read man sudo, man sudoers to have idea of this.
should let all users run the script ping-flood witouth promping for password.
I havea script in /usr/bin , say it's ping-flood like you said. I have added the above line to my /etc/sudoers and all users should be able to use it, but it's not working...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.