Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
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.
Dear all
help me please,
I want execute this command by php: "service network restart" or "reboot". owner and group of this php file is root. and I execute this command "chmod +s test.php" but I can't execute this command.
what can I do it ?
I execute it in this way, but didn't right.
I can't execute supper command such as "reboot" & "service ... restart " but I can do "ls" & "ifconfig" & "ping" and saw reply from this.
why?
Are you logged in as root? This is not like windoze where when you are in, you are in. Each user has his/her own privledges. If you are not sure who you are logged in as, type in whoami. That will tell you who you are logged in as. If it is other than root, then it won't work if that command requires root access.
If it says you are not root, type in su, hit return, then type in your root password. Then try again.
coution I want do this in php.
what is you Solution?
I want read & write 2 some file and then restart some service or restart computer. what is the best way?
Going by your name and such, I suspect english may not be your native language. You may want to check out the link in my sig. May get a better response there.
Dear dalek,
I want to create a php page for DHCP .
therefore I should :
read from /etc/dhcpd.conf and write to /etc/dhcpd.conf.
restart the service.
now I can do read & write. but I can't restart this service in this way "service dhcpd restart".
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.