How do I run a gui program as root?
I'm trying to enable samba but the program is all grayed out when I run it. I assume its cause I'm not logged in as root. How do I run it as root? I'm using Debian and I can't actually log in as root.
|
Hi,
If you know root password then you can switch to root using "su -" else try to use sudo <command> from the same user. |
You have to type the name of the program into a virtual terminal with root privileges, see mannmaniyar above. Most programs are in /bin, /usr/bin, /sbin, /usr/sbin. If you don't know the actual command name, put the icon on the desktop, right click the icon, click properties, and click executable
|
for some reason it is not allowing me to drag these samba configuration programs to the desktop. i have no idea why...
|
Quote:
To launch a gui program as root, use "kdesu" in KDE, or gnomesu in Gnome. This will also allow root access to your screen. However, admin programs launched from the menu will prompt you for the root password so this may not be necessary. Are you trying to configure samba or have the service enabled? |
you can use "sudo -i" to become root.
|
The program just says Samba - KDE Control Module. I am using Debian.
where do I run kdesu? I tried it in a terminal and got command not found. |
From Alien Bob in Slackware don't no about Debian
Code:
echo $DISPLAY # you'll be needing this value 3 lines below |
HOWTO - get kdesu back to normal in KDE4 - http://forums.debian.net/viewtopic.php?f=16&t=40158
This one is actually pretty easy. In a terminal here is what you do: Anywhere you see ## just after that is instructions you do NOT have to type the text directly AFTER the ## signs, what you have to type will either be BEFORE the ## on a line or the line will have NO ## signs. Code:
##first type in: |
You can press ALT-F2 and then enter "kdesu <program name>". If that doesn't work in other distros, I wasn't aware of it.
kdesu & gnomesu differ from sudo in that it handles xauth cookies so that the root user has access to the display. A GUI program needs that. |
If you search the internet for "debian samba" you may find something useful. I know nothing about the program, but this looks a good place to start:
http://www.debianhelp.co.uk/samba |
Configuring Samba can be done quite easily though the command line and a text editor. The text editor is used to edit /etc/samba/smb.conf and the command line to add names to the /etc/smbpasswd file.
I recommend Samba by Example: http://samba.org/samba/docs/man/Samba-Guide/ In case it helps, here is a bit of my smb.conf file, which basically allows read/write access. Code:
[global] |
1 Attachment(s)
Quote:
Also you can add some tools to KDE Menu to run them as root. No need to launch everytime konsole and no need to type a bunch of letters Just click menu item: |
1 Attachment(s)
Rather than kdesu, try using gksu. Since Debian generally runs Gnome, it's likely that it has gksu. gksu is a command launcher for running programs as root. If gksu is not installed on your system, then simply install it (IE, "apt-get install gksu"), and then you can use it. Just press Alt-F2, enter "gksu", and then within the gksu launcher, enter the name of the program you wish to run as root.
|
Quote:
kde and Gmone3 both block things being " just put" on the desktop clean desktops IS the rule now the desktop folder is NOT a general purpose "work bench folder" |
All times are GMT -5. The time now is 12:09 AM. |