LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 04-03-2004, 01:46 PM   #1
urbansound
LQ Newbie
 
Registered: Mar 2004
Posts: 26

Rep: Reputation: 15
Question RealVNC - remote only available as root?


I posted this earler in the Slackware forum but no results after a couple hours, so I duplicated here. I've checked other forums and didn't find an answer to it yet, so I appologize for bumping into another forum.

My Slack system is set up as "Linux1", with two users, Root and Mike, for myself, so I can stay out of root mostly. I followed the tutorial from here... http://www.linuxcasestudies.org/Case...CS3_web-09.htm

I've looked at other tutorials for two days now, trying to find out how to establish myself as "Mike", from one of the other nodes.

The tutorial explains if I want to allow others to use VNC do this...

"Copy the vncserver, vncpasswd, and Xvnc programs to /usr/local/bin if you want to allow everyone to use them or to ~/bin if they're just for your personal use. " Since I want other machines on the network to access the Linux machine by REALwinviewer, I set the files into the /usr/local/bin directory.

Then the tutorial says... "Regardless of where you placed the server, create the subdirectory "vnc" in the same location. Therefore, create /usr/local/bin/vnc or ~/bin/vnc. Copy VNC's classes subdirectory to this new vnc subdirectory if you haven't already."

So, I did that.

Next it says to modify the vncserver script to point to $vncClasses = "/usr/local/vnc/classes";

My vncserver script looks like this... (edit in red)

$vncClasses = <<<-d "/usr/share/vnc/classes"> && "/usr/share/vnc/classes">
  • <<-d "/usr/local/vnc/classes"> && "/usr/local/bin/vnc/classes">>

Then the tut says to fire up vncviewer local, the first time, run and to set it up as vncviewer :10. Did that. It takes a password from me and ps -ef shows it running. Great!

I go to the win32 machine, fire up the RealVNC client, point it to the linux node, enter the password and (cool), I'm there. I fire up Xterm and bash, I'm root. OK it works.

Now, I want to log on as "Mike". So I go back to the linux machine, log in as "mike", go to mike@Linux1:/usr/local/bin, it's all there. I do a vncserver :10 and it says I havn't priviliages, but it kicks the server on in a PID anyhow.

I go back to the win node, launch the client, as "192.168.1.100:10, (the Linux1 DHCP address), give password and I get "no authorization".

So, my twenty cent question is this...

I thought I installed the server in such a way as would provide each user with the ability to run VNC. But launching vncserver as Mike, tells me I have no access, yet launches a server I can't get to.

What I'm trying to do, is set "mike" as the login and bash only mike, not root, from the remote machine, but somewhere, I'm apparently brain blocked on getting this share to run, except as root.

Please help the poor VNC noob, with some pointers
 
Old 04-03-2004, 02:06 PM   #2
Peeyush Maurya
Member
 
Registered: Apr 2004
Location: Delhi, India
Distribution: Red Hat , WhiteBox
Posts: 31

Rep: Reputation: 15
tell me if i got it all wrong?
- u want ur linux users to use vnc from windows machine


if yes
login as user1 in ur linux box
- vncpasswd
- vncserver

will gives u result
New 'X' desktop is linuxserver:3

Creating default startup script /home/user1/.vnc/xstartup
Starting applications specified in /home/user1/.vnc/xstartup
Log file is /home/user1/.vnc/srv:3.log

do same with other users...login in their name and vncpasswd then vncserver
later on u can add vncserver in users .bash_profile so that when ever user logged in his vncserver starts itself

Regards
Peeyush
http://geocities.com/peeyush_maurya/
 
Old 04-03-2004, 02:20 PM   #3
mrcheeks
Senior Member
 
Registered: Mar 2004
Location: far enough
Distribution: OS X 10.6.7
Posts: 1,690

Rep: Reputation: 52
do not start vncserver as root, start it as mike while in X(it will ask for a password, create vnc user files for mike, and you will use the same pwd to connect remotely as mike user)
 
Old 04-03-2004, 02:20 PM   #4
urbansound
LQ Newbie
 
Registered: Mar 2004
Posts: 26

Original Poster
Rep: Reputation: 15
Thank you Peeyush,

I believe you understand correctly.

I am first at my linux machine, Linux1

I log in as "mike" and have no password for my personal account

I type vncpasswd

it returns this... "Password"

I tell it maybe "ppaasswwdd" to use as my passowrd

It says "Verify", I type in again "ppaasswwdd"

It returns as "Cannot write password file /home/mike/.vnc/passwd"

This file "does" exist under the user "mike"
 
Old 04-03-2004, 02:30 PM   #5
urbansound
LQ Newbie
 
Registered: Mar 2004
Posts: 26

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by mrcheeks
do not start vncserver as root, start it as mike while in X(it will ask for a password, create vnc user files for mike, and you will use the same pwd to connect remotely as mike user)
Thanx Cheeks,

perhaps you missed this...From my first post...

Quote:
Now, I want to log on as "Mike". So I go back to the linux machine, log in as "mike", go to mike@Linux1:/usr/local/bin, it's all there. I do a vncserver :10 and it says I havn't priviliages, but it kicks the server on in a PID anyhow.
So, first off, I "can't" launch the server from the user "mike", due to error.

Also can't "Passwd" from "mike" without error

Now...

You said "while in X"? Do you mean startx, which puts me into TWM, then launch xterm, or what? Seems redundant, or I'm missunderstanding.

Thank you. Please clarify. I'm sure it's something foolish, like a permissions setting or something.

_____________

Mike
 
Old 04-03-2004, 03:01 PM   #6
Peeyush Maurya
Member
 
Registered: Apr 2004
Location: Delhi, India
Distribution: Red Hat , WhiteBox
Posts: 31

Rep: Reputation: 15
Read this while iam searching for more
http://www.realvnc.com/pipermail/vnc...er/024881.html

did u installed VNC?

create a new user and login as new user . run vncpasswd ..see if u r getting same error

Regards
Peeyush
http://geocities.com/peeyush_maurya/
 
Old 04-03-2004, 03:09 PM   #7
urbansound
LQ Newbie
 
Registered: Mar 2004
Posts: 26

Original Poster
Rep: Reputation: 15
Got it!

Peeyus,

Thank you. Your suggestions triggered an idea. I had manually modified the /mike/ vncstartup, trying to get it to work, which interefered with the account estalishment procedure as you showed it "should" be done.

I removed user and all associated trees, reestablished new user, followed your instructions and BINGO!!

Thankfully, this was a new user, making it easier this way, then to go in a re-alter the user existing.

Thank you both for your help!

This topic is now closed, for my purposes.

Mike
 
  


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
logging into remote machine with root id tuxfood Linux - General 2 08-08-2005 07:15 AM
root password on remote system arut Solaris / OpenSolaris 2 01-03-2005 05:27 AM
Remote Root Access??? dsschanze Linux - Software 2 09-25-2004 06:04 PM
Help: cannot remote login as root tho_x_tran Linux - Security 7 09-11-2004 12:05 AM
WU-FTP root login remote adme Linux - Networking 2 02-07-2003 02:58 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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