LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This 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


Reply
  Search this Thread
Old 07-31-2006, 10:28 PM   #1
gtwilliams
LQ Newbie
 
Registered: Jun 2005
Distribution: ubuntu - hoary hedgehog
Posts: 13

Rep: Reputation: 0
Digital Picture Frame Startup Scripts - Auto Login


Hey,

I have some startup scripts that I want to run when I boot up my machine. I am running a server edition of ubuntu with X installed (XFCE). When I boot up I had an auto-login script set up to log in, and then my .bash_profile set up to start up a couple scripts. The problem is if I auto login (I wish i still had the script to show you, i deleted it since it doesn't work) then if i try to SUDO anything, or SSH in, my password isn't accepted !?

Questions:

1) How can I auto login and still have the ability to SSH or SUDO (It boots to command prompt now)

2) I read about inet.d and /etc/rc2.d/ and /etc/rc3.d/ for startup scripts, but is this the best way to go?

3) When I log in from the command prompt and run the script which calls "xinit", it says the user isn't authorized to start x or run x. How can i fix it ?


Thanks a LOT!!!!

- Grant
 
Old 07-31-2006, 10:59 PM   #2
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
Have you looked at this: http://www.ubuntuforums.org/archive/...p/t-31310.html ?
 
Old 07-31-2006, 11:05 PM   #3
gtwilliams
LQ Newbie
 
Registered: Jun 2005
Distribution: ubuntu - hoary hedgehog
Posts: 13

Original Poster
Rep: Reputation: 0
Thanks for finding that. To post the portion of code :
Code:
int main() {
execlp( "login", "login", "-f", "your_user_here", 0);
}
is the code which I used and didn't allow me to SUDO or SSH. So if you can find something else, that would be incredible.
 
Old 08-01-2006, 02:14 PM   #4
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
What happened when you tried to sudo or ssh?
 
Old 08-01-2006, 04:43 PM   #5
gtwilliams
LQ Newbie
 
Registered: Jun 2005
Distribution: ubuntu - hoary hedgehog
Posts: 13

Original Poster
Rep: Reputation: 0
My password is not accepted when I try to SUDO or SSH.

1) The machine logs in automatically
2) I try to SSH in from another machine to start the slideshow (password not accepted)
3) I try to start the slideshow or any process via sudo locally (password not accepted)


I don't know enough about the forced login, but you can see from the code above I don't supply a password... something is weird.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Digital Picture Frame advice needed Heathicus Linux - Software 6 05-18-2006 04:13 AM
Mandriva startup scripts (need to add something to startup before X starts) thunderweasel Mandriva 3 01-01-2006 12:55 AM
digital camera picture viewer timsch75 Linux - Software 3 04-08-2004 06:45 PM
Auto-login and auto-restart... TankerKevo Red Hat 2 10-04-2003 07:52 AM
Disable auto login at startup x ferry.hidayat Linux - Newbie 2 10-03-2003 09:32 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:46 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