LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 01-13-2016, 05:50 AM   #1
greenace92
Member
 
Registered: Nov 2015
Posts: 70

Rep: Reputation: Disabled
Simple way to get root view of folder?


Usually I just right-click on a folder and I get the option of "root actions - open in new window" or something like that. I've got a local web server and I'm unable to transfer files into /var/www/html unless I'm root.

I can do it via terminal, but that's not as easy as "drag and drop" if I could have root access in a file manager.

I'm using Debian 8 with KDE as desktop environment.

I was looking for something like "options->root" or something.

Any help would be greatly appreciated.
 
Old 01-13-2016, 06:11 AM   #2
malekmustaq
Senior Member
 
Registered: Dec 2008
Location: root
Distribution: Slackware & BSD
Posts: 1,613

Rep: Reputation: 433Reputation: 433Reputation: 433Reputation: 433Reputation: 433
Usually KDE offers a root file manager at Menu. Try go over if there is.

Another way is---

Alt+F2 then at the box type
Code:
gksu dolphin
Click Launch or OK. You will be prompted for your password.

Another way is---

Get a terminal
Quote:
sudo -i <Enter>
or
Quote:
su root <Enter>
after you are set user as root, type
Quote:
dolphin <Enter>
. Instead of "dolphin" you can use "konqueror" any way the terminal should be able to offer you a root file manager. In my case I am using all those, save that I don't use dolphin very often, I mostly use Thunar the Xfce4 file manager.

Goodluck. Enjoy.

Last edited by malekmustaq; 01-13-2016 at 06:42 AM.
 
Old 01-13-2016, 10:30 AM   #3
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 6,869

Rep: Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247
If you are using KDE, the command below will work to open the dolphin filemanager. Of course, you will prompted for your root password.

Code:
kdesu dolphin
You can change ownership of sub-directories of the /html directory.
 
Old 01-13-2016, 11:12 AM   #4
greenace92
Member
 
Registered: Nov 2015
Posts: 70

Original Poster
Rep: Reputation: Disabled
These commands did not work for me. Unable to locate package.

I had problems developing in the local server, for example the backgrounds would not load however developing using desktop and no PHP, the background problem was fixed.

Still I would like to figure out how to get root access for folders with GUI/drag and drop as opposed to using terminal to move files.
 
Old 01-13-2016, 11:27 AM   #5
Habitual
LQ Addict
 
Registered: Jan 2011
Location: Youngstown, Ohio
Distribution: LM17.1/Xfce4.11.8
Posts: 7,159
Blog Entries: 10

Rep: Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968
Try
Code:
gksudo dolphin /
 
Old 01-13-2016, 03:24 PM   #6
TxLonghorn
Member
 
Registered: Feb 2004
Location: Austin Texas
Distribution: Mandrake 9.2
Posts: 569

Rep: Reputation: 183Reputation: 183
I found that "kdesu" did not work in my Linux Mint 17 KDE. However, "kdesudo" did work.
"gksudo" definitely did not work well.
 
Old 01-14-2016, 08:03 AM   #7
malekmustaq
Senior Member
 
Registered: Dec 2008
Location: root
Distribution: Slackware & BSD
Posts: 1,613

Rep: Reputation: 433Reputation: 433Reputation: 433Reputation: 433Reputation: 433
Quote:
These commands did not work for me. Unable to locate package.
May not work in some cases but Arch you are using has at least one of the following command:
Code:
ktuss <Enter>
or
Code:
gnsu <Enter>
you will be prompted with a password. Some commands like "gksudo", "gksu" are just links to "gnsu" they work the same way.

Quote:
Still I would like to figure out how to get root access for folders with GUI/drag and drop
You have been told above by many and any of those opinions may run in your system. Actually "gksu", "gksudo" are gnome ways; while "kdsu", "kdesu", "kdsudo" are kde ways. Another way of knowing what your system is currently using is to try
Code:
ls -l /usr/bin/*su*
and you will know which of the above is available. However, the shortest way is
Code:
su root <Enter>
in the terminal, then followed by issuing
Code:
/usr/bin/dolphin
that should bring you to a root file manager.

There is no such thing as drag-and-drop implementation of set-user-to-root, so far to my limited information. But somehow you or any one can make a script to make that happen. Drag and drop is the gambit of proprietary OS's, making dangerous things easy for the customers in order to ensure business and profit. That seems to be far from philosophy of unix oriented OS's.

Hope that helps. Goodluck.

m.m.
 
Old 01-14-2016, 08:18 AM   #8
descendant_command
Senior Member
 
Registered: Mar 2012
Posts: 1,380

Rep: Reputation: 353Reputation: 353Reputation: 353Reputation: 353
Quote:
Originally Posted by yancek View Post
You can change ownership of sub-directories of the /html directory.
^^This.
Don't be root, be the owner of the files you are working with.
 
  


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
extracting root folder to a user home folder command mzein1292 Linux - Newbie 3 06-23-2015 08:26 AM
[SOLVED] how to make a link (user)folder that links to a root folder morganfreeman Linux - Server 6 01-14-2013 06:56 AM
[SOLVED] Seperating Home folder from Root Folder to a new partition. baxzius Linux - Newbie 5 08-01-2011 04:26 PM
Folder View or graphical view login using ssh caliskans Linux - Newbie 2 07-05-2009 05:57 PM
permissions difference between /home/..../folder and /root/folder darkleaf Linux - General 3 07-21-2005 06:23 PM


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