LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 01-31-2002, 05:46 PM   #1
Hogweed
LQ Newbie
 
Registered: Jan 2002
Posts: 4

Rep: Reputation: 0
Embedded automatic login?


n/m

Please see reply.

Last edited by Hogweed; 01-31-2002 at 06:31 PM.
 
Old 01-31-2002, 05:51 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
it might've belonged here, but it should only belong in one place, and seeing as ppl have already been replying in your other thread please use that one instead.

http://www.linuxquestions.org/questi...threadid=13206
 
Old 01-31-2002, 06:37 PM   #3
Malicious
Member
 
Registered: Jan 2002
Location: Galveston Island
Distribution: suse, redhat
Posts: 208

Rep: Reputation: 30
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 file 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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Automatic Login? matthewa Linux - General 12 11-21-2005 06:53 PM
automatic login rsingh Programming 5 10-25-2003 06:55 AM
Automatic login Mad Echidna Linux - Software 1 12-17-2002 06:00 PM
Automatic Login SlavaVB Linux - General 2 03-11-2002 11:10 PM
Automatic Login kilobravo Linux - General 1 02-15-2002 01:01 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 08:51 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration