Trouble in accessing `/home/USERNAME/.Xauthority'
Nils Kassube
kassube at gmx.net
Wed Mar 17 21:59:24 UTC 2010
NoOp wrote:
> 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.
Arrgh, my bad. Somehow I misread the ln command, i.e. the command
creates a link in the /root directory and not the other way. So, yes, it
seems the file '/home/hamed/.Xauthority' is missing.
Nils
More information about the ubuntu-users
mailing list