VNC Limited Options


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers VNC Limited Options
# 1  
Old 02-16-2012
VNC Limited Options

I have a vnc server running on my version of CentOS 6. However, when I remote in I have limited options in the Gnome GUI such as not being able to shut down or edit network connections and so forth. Obviously I need to be able to change these things over VNC and would like to do so through the GUI. Below is my xstartup script.

Code:
#!/bin/sh

[ -r /etc/sysconfig/i18n ] && . /etc/sysconfig/i18n
export LANG
export SYSFONT
vncconfig -iconic &
unset SESSION_MANAGER
unset DBUS_SESSION_BUS_ADDRESS
OS=`uname -s`
if [ $OS = 'Linux' ]; then
  case "$WINDOWMANAGER" in
    *gnome*)
      if [ -e /etc/SuSE-release ]; then
        PATH=$PATH:/opt/gnome/bin
        export PATH
      fi
      ;;
  esac
fi
if [ -x /etc/X11/xinit/xinitrc ]; then
  exec /etc/X11/xinit/xinitrc
fi
if [ -f /etc/X11/xinit/xinitrc ]; then
  exec sh /etc/X11/xinit/xinitrc
fi
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
gnome-session &

---------- Post updated at 02:02 PM ---------- Previous update was at 02:01 PM ----------

Bump bump any ideas?
# 2  
Old 02-16-2012
You agreed not to bump posts when you registered here. We are not "on call", and you barely waited a single minute before bumping anyway -- if you don't get an answer immediately, wait!

I take it when you login as this user when physically at the machine, you get permissions to shut down the system, etc? I think the trouble is you're bypassing the usual Gnome login system by logging in direct with VNC...

Might you need to run gnome-session before you run other things?

It's funny. A while ago we had someone with the exact opposite problem, how to restrict a remote user from getting to a real login screen!
# 3  
Old 02-16-2012
My appoligies for the bump, and I originally posted this about 12 hours and just updated it twice by accident. Would I need to move gnome-session & to the top or how might that be done?
Thanks in advance.

---------- Post updated at 02:51 PM ---------- Previous update was at 02:13 PM ----------

Fixed problem myself by changing gnome-session & in startup script to exec gnome-session &
This User Gave Thanks to spinner0205 For This Post:
# 4  
Old 02-16-2012
Good to know that's how it's done. Thank you for posting your solution.

The & might be redundant then, since exec would replace the current script.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

6 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

ICMP for limited time

Hi, I am using following command: tcpdump -i eth1 icmp =8 >output.txt i want this command to get execute for a minute only. How can we do this? Thanks. Please use code tags next time for your code and data. Thanks (2 Replies)
Discussion started by: Satyajeet@uh
2 Replies

2. Homework & Coursework Questions

Listing limited no. of files

Hi, If there are 20 files in current directory ,How display the long listing of files in that directory with listing of four files at once.. (3 Replies)
Discussion started by: Phaneendra G
3 Replies

3. UNIX for Advanced & Expert Users

new userid with limited access

Hi, I want to create a user using useradd -m test. But my requirement is he should not change his directory from Home directory. How can I restric the user not to change his directory from his home dir? Thanks, Suresh Double Post (0 Replies)
Discussion started by: suresh3566
0 Replies

4. Ubuntu

Kernel boot options removed by fault, no boot options

Hello Everyone, First of all, I highly appreciate all Linux forum members and whole Linux community. http://forums.linuxmint.com/images/smilies/icon_wink.gif. I wish you the best for all of you ! I will try to be short and concise: I am using Linux Mint 10 for 2 months on 2 ws, and all went... (3 Replies)
Discussion started by: cdt
3 Replies

5. UNIX for Dummies Questions & Answers

user with limited access

dear guys, sorry for asking a noob :p question, tried to search the forum for an answer but couldn't find one, i am running solaris 10 and i would like to create a user with limited access to view only one directory, the directory already exist, is this possible:confused:? thanks and regards (4 Replies)
Discussion started by: q8devilish
4 Replies

6. Solaris

user with limited privileges

Hi, I tried to search, but could not find answer for this really: Is it possible to create a user that would have access only to a defined list of files? I would like to create a user that can access a set of files that are located behind different path. This user should not have access to... (1 Reply)
Discussion started by: Juha
1 Replies
Login or Register to Ask a Question