LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices

Reply
 
Search this Thread
Old 06-24-2010, 10:14 AM   #1
AudioMechanic
Member
 
Registered: Jun 2003
Distribution: OpenSUSE 12.3, CentOS 6, Xubuntu 13.04
Posts: 125

Rep: Reputation: 16
[SOLVED] User Privledges - VNC vs Console


Hi everyone. I hope you all are doing well!

I setup a VNC between my Macbook (running OS 10.4) and my Mandriva 2010.0 box. I'm using the FreeNX server on the Mandriva box and the NX Client on the Macbook.

I can connect fine from the Macbook to the Mandriva box fine but the issue I'm having is accessing the DVD drive on the Mandriva box in Dolphin. When I try to access a disk in the drive, I get a prompt for the root password. When I enter the root password, I can access the drive fine. However, I want the user to be able to access it without root privedges. The reason is due to needing the drive to be accessable to a Windows program in Wine. I CAN access the drive as the user when logged into the console but not over the VNC.

I have already added the user to the cdrom and cdwritre groups in the /etc/groups file but no change. I can mount the drive in the command line and also access it using tools like k9copy, but not dolphin (without root).

I think this might be an issue with PolicyKit but I know nothing about it. I do know that I cannot change any settings in the PolicyKit GUI in Desktop Settings > Advanced > PolicyKit Authorization.

I would very much like for this user to have the same ability over the VNC as it does at the console concerning the DVD drive.

Thanks in advance!!!

Have a great day, everyone.

Last edited by AudioMechanic; 06-25-2010 at 07:34 AM.
 
Old 06-24-2010, 02:00 PM   #2
AudioMechanic
Member
 
Registered: Jun 2003
Distribution: OpenSUSE 12.3, CentOS 6, Xubuntu 13.04
Posts: 125

Original Poster
Rep: Reputation: 16
Thank you to the Mod who moved the thread. I wasn't sure where to put it to get the best exposure.
 
Old 06-24-2010, 02:03 PM   #3
win32sux
Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
Quote:
Originally Posted by AudioMechanic View Post
Thank you to the Mod who moved the thread. I wasn't sure where to put it to get the best exposure.
No problem. Good luck!
 
Old 06-25-2010, 07:34 AM   #4
AudioMechanic
Member
 
Registered: Jun 2003
Distribution: OpenSUSE 12.3, CentOS 6, Xubuntu 13.04
Posts: 125

Original Poster
Rep: Reputation: 16
SOLVED!

I had to add the bold text to /etc/PolicyKit/PolicyKit.conf:

Code:
<?xml version="1.0" encoding="UTF-8"?> <!-- -*- XML -*- -->

<!DOCTYPE pkconfig PUBLIC "-//freedesktop//DTD PolicyKit Configuration 1.0//EN"
"http://hal.freedesktop.org/releases/PolicyKit/1.0/config.dtd">

<!-- See the manual page PolicyKit.conf(5) for file format -->

<config version="0.1">

<match action="org.freedesktop.hal.storage.mount-removable">
    <match user="remote">
      <return result="yes"/>
      </match>
  </match> 

<match action="org.freedesktop.hal.storage.mount-fixed">
    <match user="remote">
      <return result="yes"/>
      </match>
  </match>

</config>
After that, I did service haldaemon restart as root. Fixed it right up!
 
1 members found this post helpful.
Old 06-25-2010, 02:26 PM   #5
win32sux
Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
Thanks for taking the time to share the solution with everyone!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
VNC console access. WRXSTi Suse/Novell 14 03-28-2007 02:43 AM
Read privledges for Windows drive bobvh77 Slackware 4 12-16-2006 11:37 AM
Whoppix remote console with VNC juanb Linux - General 0 07-15-2005 09:28 AM
Some windows redirected to console (not in VNC) jswilson Red Hat 6 10-31-2003 03:22 PM
root privledges robmainella Linux - General 7 09-01-2003 09:25 PM


All times are GMT -5. The time now is 06:45 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration