Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 02-20-2009, 02:44 PM   #1
Registered: Sep 2007
Posts: 76

Rep: Reputation: 15
ownership question-uid1000

I am on Kubutu 8.04. I brought up kwrite via sudo and got error messages complaining that 3 directories, eg /var/tmp/kdecache-albert were owned by uid1000 instead of uid0. Why is this and what to do about it?
Old 02-20-2009, 03:24 PM   #2
Didier Spaier
LQ Addict
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-14.2 on Lenovo Thinkpad W520
Posts: 7,867

Rep: Reputation: 2780Reputation: 2780Reputation: 2780Reputation: 2780Reputation: 2780Reputation: 2780Reputation: 2780Reputation: 2780Reputation: 2780Reputation: 2780Reputation: 2780
When you use sudo you become root (User Id #0) instead of Albert (User Id #1000).

You could use root's own environment typing 'sudo su -' then 'kwrite' (omit the single quotes in your commands).

But, do you *really need* to use kwrite as root ? Be careful.
Old 02-20-2009, 06:42 PM   #3
Registered: Sep 2007
Posts: 76

Original Poster
Rep: Reputation: 15
I thought so to edit fstab.
Old 02-20-2009, 07:10 PM   #4
Gentoo support team
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,074

Rep: Reputation: 387Reputation: 387Reputation: 387Reputation: 387
Permissions of temporal files shouldn't be something to worry about (in this case).

As a side note, I'd stop using GUI programs when working as root, too easy to screw things up. I'd learn to use nano, pico, joe or mcedit if you really don't want to learn something more complete like vim or emacs. But, to each, his/her own.
Old 02-20-2009, 09:33 PM   #5
Registered: Sep 2007
Posts: 76

Original Poster
Rep: Reputation: 15
Many thanks to all.
Old 02-20-2009, 11:41 PM   #6
Registered: Sep 2007
Location: Las Vegas, NV
Distribution: Fedora / CentOS
Posts: 674
Blog Entries: 3

Rep: Reputation: 90
x2 what i92guboj said.

chmod and chown are the CLI programs to modify file permissions and ownership respectively. In this case, chown is what you would use to change the ownership.

'chown user:group file' is the syntax.

'man' is your friend i.e. 'man chown' and 'man chmod'


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
Question about proxy ownership jonette20 Linux - General 2 08-20-2007 02:45 PM
quick question, ownership of a partition jimjamjahaa Linux - General 3 02-02-2006 01:46 PM
Question on ownership and permission satimis Linux - General 16 01-25-2006 11:40 AM
Question about ownership/permissions infornography Linux - Newbie 7 07-28-2004 06:57 AM
Maybe a newbie question: ownership changed Cps530 Linux - Security 4 08-19-2002 03:43 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:03 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration