LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 05-07-2009, 05:53 PM   #1
Robhogg
Member
 
Registered: Sep 2004
Location: Old York, North Yorks.
Distribution: Debian 7 (mainly)
Posts: 653

Rep: Reputation: 97
~/.config/menus - should be owned by root?


I was having trouble getting System > Preferences > Main Menu (actually alacarte) to run, to make a change to my gnome main menu. I found the problem was that my ~/.config/menus directory was owned by root:root. I chowned the directory (and files therein) to my own user account, and alacarte ran without problems.

My question: is there a good reason for these files to be owned by root? The only risk that I can think of is that someone could replace one of the menu items in order to get me to run something else, but then someone could also replace one of the scripts in my ~/scripts directory, or even the Eclipse executable that is installed in ~/eclipse.

I Googled around a bit, and found some advice to change the ownership of this directory, and other pages saying that it should be owned by root (but not really saying why).

Thanks,
Rob

Last edited by Robhogg; 05-07-2009 at 06:58 PM.
 
Old 05-09-2009, 03:26 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,409
Blog Entries: 55

Rep: Reputation: 3582Reputation: 3582Reputation: 3582Reputation: 3582Reputation: 3582Reputation: 3582Reputation: 3582Reputation: 3582Reputation: 3582Reputation: 3582Reputation: 3582
No particular security reason I can see. Could be a chownage glitch for /etc/skel stuff or on package installation or on otherwise copying things over.
 
Old 05-09-2009, 01:31 PM   #3
Robhogg
Member
 
Registered: Sep 2004
Location: Old York, North Yorks.
Distribution: Debian 7 (mainly)
Posts: 653

Original Poster
Rep: Reputation: 97
Thanks, 'tis what I was thinking.
 
  


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
root-owned file is able to be deleted with my non-root account win32sux Linux - Security 3 11-18-2008 02:00 AM
How can I have a script owned as root and run as root by a user: setuid? stickey bit? abefroman Linux - Newbie 9 04-19-2008 05:15 PM
Cannot start connection, /root not owned by root ???!! ALInux Linux - Software 6 12-13-2005 04:50 PM
Make a file owned by root owned by a user sharpie Linux - Newbie 2 02-26-2004 01:26 AM
vfat mount - all files are 'root' owned, but even root can't -WX d33pdream Linux - General 5 02-28-2003 02:38 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 06:00 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