Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then 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.
I'm developing an embedded application that is running on PeeWee Linux. I need root privileges and eventually the system will have to boot without prompting for user/pass.
Look out! Some seem to have an almost religious respect for “root”. To even speak of such things can get you kicked from IRC or possibly banned. It happened to me 5 mins after my first boot into Linux. It’s almost a flame troll. I know there is a way but damn if I know how. I have searched usenet and found some stuff but the threads usually turn to flames. Here is what I found
This is not exactly the way you asked this question in the programming forum, but here is the answer that I posted there.
To enable an "ordinary" user to run a program as root, that program must be owned by root and have suid permission set. Login as root and use the "chown" command to change the ownership of the program to root and then use the "chmod" command to set suid permission (chmod +s program-name). Now any user can execute this program and it will run with root as the user id. Now figure out when you want to run the program. The simplest solution to running a program at login would be to add the execution of the program to your login script in /etc/profile or whatever shell profile file you use.
what's there to get? it's ripped of of salmondays.tv, some online computing sitcom type thingy. the sample avi's are quite funny, one where the office paperclip is standing next to this guy just goin "it's looks like you want to write a letter!" again and again until he mangles the clip to death... guess you had to be there...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.