VectorLinux

Please login or register.

Login with username, password and session length
Advanced search  

News:

Visit our home page for VL info. For support and documentation, visit the Vector Linux Knowledge Center or search the Knowledge Center and this Forum using the search box above.

Author Topic: Opening file manager as root in normal user sessiion - VL 7 STD  (Read 1032 times)

roarde

  • Vectorian
  • ****
  • Posts: 602
  • move the needle

I'm trying to help someone remotely with VL and I can't persuade him here to the forum. At this point, it'd be helpful to copy files to directories with root priveleges without logging in as root.

As for myself, I'm currently VL-less and have used only Light, not STD.

PCManFM has an option to "open current folder as root". Is there something similar in STD's fm (Thunar?)?

Also, will "cat CRLFfile.txt > NLfile.txt" do a CRLF to NL conversion? Is there an easier/better way?
Logged
Robert
VL 7.1 Light RC 2

stretchedthin

  • Administrator
  • Vectorian
  • *****
  • Posts: 3780
    • Opensourcebistro.com
Re: Opening file manager as root in normal user sessiion - VL 7 STD
« Reply #1 on: June 04, 2012, 04:44:47 pm »

Right click in thunar gives "Open terminal here" option

I'm not getting your meaning on the other part of the question.
« Last Edit: June 04, 2012, 05:36:38 pm by stretchedthin »
Logged
Vectorlinux screencasts and  tutorials can be found at....
http://www.opensourcebistro.com/blog1
http://www.youtube.com/user/vid4ken?feature=mhee

roarde

  • Vectorian
  • ****
  • Posts: 602
  • move the needle
Re: Opening file manager as root in normal user sessiion - VL 7 STD
« Reply #2 on: June 04, 2012, 05:43:54 pm »

What I'm looking to do is open a thunar window that has root privileges (for copying files to /etc, for examlple) inside a normal user's session.

The other part is this:
I'm working from a Microsoft box. You'll recall that lines in text files are terminated with CR+LF -- think "DOS text" --, whereas on a unix or Linux machine, NL (or LF, if you must) ends a line. Not sure it's required anymore, but it's certainly appropriate to convert the CRLF "newlines" to NL newlines before leaving the file or script to run on the VL machine.

In DOS or CMD, I can execute "type unixfile.txt > dosfile.txt" to convert NL to CRLF. I wanted to know if doing the same thing with "cat" would convert dostext to NL, or learn a good, simple way to accomplish it.

We're working with the lower half of the charsets, so charset's not a problem. Besides native, I have ANSI and UTF-8 if it becomes relevant.

If someone wants to experiment, a short dostext file is attached. You might need a hex editor to see the difference, but I think ViM or nano will at least show a difference.

Thanks for your help.
« Last Edit: June 04, 2012, 05:57:57 pm by roarde »
Logged
Robert
VL 7.1 Light RC 2

Daniel

  • Packager
  • Vectorian
  • ****
  • Posts: 704
    • TuxToys - Packages for VectorLinux 6.0
Re: Opening file manager as root in normal user sessiion - VL 7 STD
« Reply #3 on: June 04, 2012, 06:23:30 pm »

For thunar as root, open a terminal, su to root, and run "thunar" (no quotes).

For converting dos format files to unix format, use dos2unix in a terminal. There's a way to do it with vim too, but I don't remember it right now.
Logged
The following sentence is true. The previous sentence is false.

VL 6.0 SOHO KDE-Classic on 2.3 Ghz Dual-core AMD with 3 Gigs of RAM

roarde

  • Vectorian
  • ****
  • Posts: 602
  • move the needle
Re: Opening file manager as root in normal user sessiion - VL 7 STD
« Reply #4 on: June 04, 2012, 06:52:34 pm »

For thunar as root, open a terminal, su to root, and run "thunar" (no quotes).
I was hoping for a totally point-and-click way (aside from typing in root password). Could always write a .desktop, I suppose.

What's the preferred graphical su command for VL 7 STD?

During a very brief interval when my brick had computerish aspirations, I did see an easy way to add this functionality to Thunar. Would paste a link, but the brick where I left it is now training to be a jelly donut.

For converting dos format files to unix format, use dos2unix in a terminal. There's a way to do it with vim too, but I don't remember it right now.
Dos2unix will work. Wasn't sure VL had it in normal default install. Still curious about cat, tho.

Thanks Daniel.
« Last Edit: June 07, 2012, 05:16:28 pm by roarde »
Logged
Robert
VL 7.1 Light RC 2