LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 04-18-2014, 09:39 AM   #1
slack_
Member
 
Registered: Oct 2013
Distribution: Slackware, Arch
Posts: 99

Rep: Reputation: Disabled
Thunar Root Warning


I was just curious, but did anyone manage to remove this? I followed this link: http://www.sgvulcan.com/remove-the-thunar-root-warning/

However it straight up just didn't work at all. Everything built successfully, but I still see that ugly warning when I run thunar. Just wondering if anyone has successfully done this. Oh, and please, I know it's a bad idea to run root and I'm wide open to script kiddies and blah blah blah. The very worst that could happen is I have to reinstall fresh because I decided the best way to start my morning is to rm -rf * /. I run linux as a hobby so I don't really mind.
 
Old 04-18-2014, 02:06 PM   #2
ReaperX7
Senior Member
 
Registered: Jul 2011
Distribution: LFS-SVN, FreeBSD 10.0
Posts: 3,382
Blog Entries: 15

Rep: Reputation: 937Reputation: 937Reputation: 937Reputation: 937Reputation: 937Reputation: 937Reputation: 937Reputation: 937
I got used to it. Just a warning label that you're accessing as root. It's not going to harm you to see it.
 
Old 04-18-2014, 02:47 PM   #3
genss
Member
 
Registered: Nov 2013
Posts: 228

Rep: Reputation: Disabled
Quote:
Originally Posted by slack_ View Post
I decided the best way to start my morning is to rm -rf * /.
the asterisk is redundant, recursive on root dir gets it all

had to abuse context
 
Old 04-18-2014, 02:55 PM   #4
genss
Member
 
Registered: Nov 2013
Posts: 228

Rep: Reputation: Disabled
http://bazaar.launchpad.net/~vcs-imp...hunar-window.c

line 834

idk how that patch in the link even works
but you can just unpack the official one and repack it


sry admins for double post, i forget this is a proper forum that lets you edit
 
1 members found this post helpful.
Old 04-18-2014, 03:08 PM   #5
Emerson
Senior Member
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~
Posts: 3,177

Rep: Reputation: Disabled
Quote:
Originally Posted by slack_ View Post
The very worst that could happen is I have to reinstall fresh because I decided the best way to start my morning is to rm -rf * /. I run linux as a hobby so I don't really mind.
No the very worst that can happen your box gets owned and will be used for criminal activities against other computers and networks.

Or lets put it this way, you are like a drunk driver who thinks: Eh, my car is old, even if I crash it I can live with it. You do not realize you could kill somebody.
 
1 members found this post helpful.
Old 04-18-2014, 03:15 PM   #6
273
Senior Member
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 3,411

Rep: Reputation: 794Reputation: 794Reputation: 794Reputation: 794Reputation: 794Reputation: 794Reputation: 794
Quote:
Originally Posted by Emerson View Post
No the very worst that can happen your box gets owned and will be used for criminal activities against other computers and networks.

Or lets put it this way, you are like a drunk driver who thinks: Eh, my car is old, even if I crash it I can live with it. You do not realize you could kill somebody.
Nicely put.
I'm constantly amazed that people who don't understand enough to comment out a piece of code think they know better than the people who wrote that code.
 
Old 04-18-2014, 05:59 PM   #7
genss
Member
 
Registered: Nov 2013
Posts: 228

Rep: Reputation: Disabled
grow up you two
 
Old 04-18-2014, 07:37 PM   #8
slack_
Member
 
Registered: Oct 2013
Distribution: Slackware, Arch
Posts: 99

Original Poster
Rep: Reputation: Disabled
Fortunately I won't kill anybody with my computer. Anyway, I managed to successfully remove the root warning. For the sake of this thread I'll post how and whatnot. As genss recommended, I unpacked the official .xz package and located the thunar-window.c file. Thanks genss for showing me where in the file the line was otherwise I wouldn't be posting my success. Commented out the related section and the just configured and installed the source. Thunar no longer has the root warning.

Thanks.

EDIT: I should also mention that even though this is sort of a petty thing to want, it's amazing how CRAZILY better Thunar looks without the warning

Last edited by slack_; 04-18-2014 at 07:51 PM.
 
Old 04-18-2014, 07:55 PM   #9
BrZ
Member
 
Registered: Apr 2009
Distribution: Slackware
Posts: 495

Rep: Reputation: 81
@slack_

Quote:
--- ./thunar/thunar-window.c
+++ ./thunar/thunar-window.c
@@ -832,7 +832,7 @@
G_OBJECT (window->spinner), "visible");

/* check if we need to add the root warning */
- if (G_UNLIKELY (geteuid () == 0))
+ if (G_UNLIKELY (1 == 0))
{
/* add the bar for the root warning */
infobar = gtk_info_bar_new ();
As some quoted information can loose the original format, you can rename the attached diff to 'remove-root-warning.diff' and edit the build script to replace the patch line with 'cat $CWD/remove-root-warning.diff | patch -p1 --verbose || exit 1'.
Attached Files
File Type: txt remove-root-warning.diff.txt (346 Bytes, 7 views)
 
Old 04-18-2014, 08:20 PM   #10
slack_
Member
 
Registered: Oct 2013
Distribution: Slackware, Arch
Posts: 99

Original Poster
Rep: Reputation: Disabled
Thank you BrZ. I appreciate your help. However, I've already succeeded at removing the root warning in Thunar. It was easier then I expected.

Last edited by slack_; 04-18-2014 at 08:50 PM.
 
  


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
Open root in Thunar Fixit7 Linux Mint 3 04-01-2014 09:03 AM
[SOLVED] Root partition warning Shahnawaz Uqaili Linux - Newbie 17 06-06-2011 07:41 AM
[SOLVED] warning: group mockbuild does not exist - using root e3399 Linux - Newbie 2 03-29-2011 12:10 PM
[SOLVED] Thunar "Open root terminal here" solution security issues catkin Programming 3 11-18-2010 10:58 AM
/root/.ppprc warning ashwin_think Linux - Newbie 0 10-10-2008 02:01 AM


All times are GMT -5. The time now is 10:44 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration