Firefox lock file?
NoOp
glgxg at sbcglobal.net
Thu Feb 12 03:59:08 UTC 2009
On 02/11/2009 12:36 PM, Ray Parrish wrote:
> Smoot Carl-Mitchell wrote:
>> On Tue, 2009-02-10 at 16:36 -0800, Ray Parrish wrote:
>>
>>> NoOp wrote:
>>>
>>>> On 02/10/2009 06:48 AM, Smoot Carl-Mitchell wrote:
>>>> [snips]
>>>>
>>>> You can find out if files in your home directory are
>>>>
>>>>
>>>>> owned by a user other than yourself by running in your home directory:
>>>>>
>>>>> find . ! -user username -ls
>>>>>
>>>>> This will give you a list of the files with the wrong ownership.
>>>>>
>>>>>
>>>> Good suggestion. You might want to pipe that to a text file so that you
>>>> can easily view it if the output is too long:
>>>>
>>>> find . ! -user username -ls > ownership
>>>>
>>>>
>>>>
>>>>
>> Try running the find with sudo. That will eliminate the Permission
>> denied messages. It does look like you have a number of files which
>> should be owned by you and are not.
>>
> Ok, I re-ran the find with sudo, and still get one error message -
>
> ray at ray-desktop:~$ sudo find . ! -user ray -ls > ownership.txt
> [sudo] password for ray:
> find: ./.gvfs: Permission denied
>
> I've uploaded the new ownership.txt file to
>
> http://www.rayslinks.com/ownership.txt
>
> I'm sure that many of the folders shown as not owned by me are the ones
> I cut and pasted in, but do not remember exactly where I cut them from.
>
> If I ever get over this sore throat and constant coughing I will be
> getting on this a bit more closely. For now I have very little energy
> and a headache to boot.
>
> I'm wondering if there is a command to get output of a date sorted list
> of the folders in my user folder. If their dates changed when I cut and
> pasted them, at least I could tell which ones did not belong.
>
> Later, Ray Parrish
>
>From the looks of that it appears that your home directory is pretty
messed up. After reading:
man chown
You may want to just change all ownership of everything in your *home*
directory after you are sure of the owner and group necessary to do so:
Do:
ls ~/ -l
and note the user/group. For instance if I do:
ls /home/aa (a user on my system)
the output will be something to the affect of:
$ ls /home/aa -l
total 11076
-rw------- 1 bb abc 14114816 2008-12-07 15:28 core
-rw------- 1 bb abc 14217216 2008-12-01 15:39 core.12198
drwxr-xr-x 2 bb abc 4096 2008-05-26 11:12 Desktop
Where bb is the 'user' and 'abc' is the group that abc belongs to.
So now, to change your home directory ownership to 'ray'
sudo -i
chown -R ray:ray /home/ray
The above assumes that your home directory is home/ray. If it is
something else then change accordingly - the command is:
chown -R <owner>:<group> <file/directory>
The above will change the ownership of all files in your home directory
with the exception of .gvfs. An easy way to look at the ownership of
your files via Nautilus is to add the 'Owner' column to your Nautilus
(Places|Home Folder): Edit|Preferences|List Columns| tick 'Owner'. Now
whenever you view your files/directories/folders via Nautilus you will
see who the owner is.
Research it first, read 'man chown' etc., *and backup your home folder
first* - wait for awhile to see if someone comments on this post to
correct me (I've been known to be wrong in the past, but think I'm
pretty right on this one:-). Also be aware that some files in your
/home/<username> that may need root ownership (there should be *very
few*) will be affected changed as well. However, the ownership.txt file
can give you a place to go back you for those files if need be.
More information about the ubuntu-users
mailing list