LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 06-18-2003, 11:56 AM   #1
agkrueger
LQ Newbie
 
Registered: Jan 2003
Posts: 21

Rep: Reputation: 15
VNCServer @ boot w/ alternate credentials


Hopefully someone else has run across this one...if the answer is to be found I know to look here from past experience (thanks to all)

Running RedHat Linux 9, everything working peachy for the most part.

I have VNC setup to start at boot by adding the command line

/usr/bin/vncserver -geometry 800x600 -depth 16 -name Servername :1

to /etc/rc.local

after the initial reboot and entering the session password to use at the console, everything works on subsequent reboots. I am able to attach and everythign.

The problem I have with this is that the session is running as 'root' and I would like to determine if possible, how to make it run using an alternate set of credentials.

I've created a standard user that I wish to use to run the session. I CAN NOT have auto-logon or anything like that happening. I want the few users who know about this server to be able to make a VNC connection to it and if 'root' access is needed, they will need to do an 'su -' at the CLI.

Is anyone aware of how to make this happen, I guess what I am looking for is similar to assigning a user account to services in the Windows world...

TIA for any help, greatly appreciated.

Last edited by agkrueger; 06-18-2003 at 11:57 AM.
 
Old 06-18-2003, 12:18 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
personally i just use
Code:
su -l chris -c 'vncserver :1 -depth 15 -geometry 800x600'
 
Old 06-18-2003, 12:26 PM   #3
agkrueger
LQ Newbie
 
Registered: Jan 2003
Posts: 21

Original Poster
Rep: Reputation: 15
not sure why that never dawned on me...i actually found the same information via a google shortly after posting...

for anyone else interested in the future, here is the link to the page i found: (look in section 4.2)

http://www.justlinux.com/nhf/Network...ith_Linux.html

I've tried it and it does now indeed run under the alternate credentials...of course I am now just getting the 'plain grey screen' but that's an easy fix and has been touched on numerous times here.

Thanks for the push in the right direction.

Hope this helps someone else.

 
Old 09-03-2003, 12:53 PM   #4
Hazzie
LQ Newbie
 
Registered: Aug 2003
Location: Stockport, UK
Distribution: RH9
Posts: 12

Rep: Reputation: 0
it has me. thanks.
Hazzie.
 
  


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
System won't boot: hangs at grub, can't mount hd through alternate means nbier Linux - Software 5 11-23-2004 01:17 PM
System won't boot: hangs at grub, can't mount hd through alternate means nbier SUSE / openSUSE 3 11-23-2004 12:58 PM
Samba Credentials: auto-boot mule Linux - Networking 0 12-12-2003 04:33 AM
redhat and XP wouldnt boot... alternate step failed iLLuSionZ Linux - Newbie 9 11-11-2003 04:43 AM
Alternate boot hard drive for backup irishb3 Linux - General 1 08-24-2001 02:55 PM

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

All times are GMT -5. The time now is 12:34 AM.

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