LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-07-2004, 04:14 AM   #1
johntramp
Member
 
Registered: Sep 2003
Location: Christchurch, New Zealand
Distribution: Gentoo / Slackware
Posts: 72

Rep: Reputation: 15
save as root


hey, im using slackware 9.1 with kde. im setting up samba atm, and cant find a way to save a file from my desktop as if i was su'd. is there any way to do this or do i need to login as root first? also when i open a konsole window and su i can't use programs such as kedit. is this normal?

thanks -john
 
Old 04-07-2004, 04:31 AM   #2
scott_R
Member
 
Registered: Jul 2003
Location: Brighton, Michigan, USA
Distribution: Lots of distros in the past, now Linux Mint
Posts: 748

Rep: Reputation: 31
For simplicities sake (I'm tired), you can open a console, locate kedit, then su to root. This is assuming you've got permission as your user to su as root (in some distros you have to be part of the 'wheel' group, or enable permission in kde/gnome). Then, type the full path to kedit (ie., /usr/bin/kedit or similar). The reason is probably that your distro disables paths for your root user (for security reasons), so you can't use a lot of user based programs as root (which you generally don't want to do anyway).

Adding the ampersand after the program will free up your console:

$ su
# /usr/bin/kedit &

another way to do this is to use the '-c' switch with su, which just runs a single program with root permissions.

Hope this helps.
 
Old 04-07-2004, 05:10 AM   #3
johntramp
Member
 
Registered: Sep 2003
Location: Christchurch, New Zealand
Distribution: Gentoo / Slackware
Posts: 72

Original Poster
Rep: Reputation: 15
thanks for your help scott, i did a
#find / -iname "kedit"
and it came back with /opt/kde/bin/kedit

so i ran that as root and it said to check that "dcopserver" programme is running. but then kedit still runs just with errors everywhere. what is dcopserver? how do i run it??
 
Old 04-07-2004, 05:16 AM   #4
johntramp
Member
 
Registered: Sep 2003
Location: Christchurch, New Zealand
Distribution: Gentoo / Slackware
Posts: 72

Original Poster
Rep: Reputation: 15
also i am not too sure what you mean with the -c switch...
$ su -c
Password:***
/bin/bash: -c: option requires an argument

or

$ su -c kedit
Password:****
/bin/bash: -c: option requires an argument
 
  


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
RHEL3 Mounting USB after reboot and between reboots: root and non-root users Luis Nunes Linux - Hardware 0 07-20-2005 09:32 AM
save file as root from x console? rockets Linux - Newbie 5 10-25-2004 09:27 AM
IntelliMouse thumb buttons work as root, broken as non-root user, wheel works always digital vortex Linux - Hardware 7 03-02-2004 05:14 PM
root files: create as root:root or root:wheel? pcass Linux - Security 1 02-07-2004 05:14 PM
save my h/d alaios Linux - Hardware 3 12-13-2003 12:04 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:57 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration