Trouble in accessing `/home/USERNAME/.Xauthority'

NoOp glgxg at sbcglobal.net
Wed Mar 17 21:09:41 UTC 2010


On 03/17/2010 01:35 PM, Nils Kassube wrote:
> Hamed Abdy wrote:
>> I'm a beginner user of Ubuntu(and also Linux), using Ubuntu 9.10.
>> I tried to setup linux-firewall.org using this steps(as mentioned in
>> www.linux-firewall.org):
>> 
> [...]
>> 4. Run the following commands:
>> sudo lfwsetup
>> sudo ln -fs ~/.Xauthority /root/.Xauthority
>> sudo chown USERNAME.root ~/.Xauthority
>> (you will have to replace USERNAME with your username)
>> 5. Restart your PC and enjoy the software
>> 
>> Until step 4, I hadn't any problem. But when I run "sudo chown
>> hamed.root ~/.Xauthority", I get this error:
>> 
>> chown: cannot access `/home/hamed/.Xauthority': No such file or
>>  directory
> 
> I think the reason is that there is no file "/root/.Xauthority". 
> Therefore I would suggest you create it as an empty file with the 
> command

Wouldn't that indicate that '/home/hamed/.Xauthority' is missing
instead? ~/.Xauthority, if missing when he ran the command should have
been recreated when he rebooted.

Hamed, what are the results of:
$ locate .Xauthority
$ ls -l ~/.Xauthority
$ ls -l /root/.Xauthority
...





More information about the ubuntu-users mailing list