|
|

03-17-2010, 08:09 PM
|
|
|
Trouble in accessing `/home/USERNAME/.Xauthority'
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
...
--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
|
|

03-17-2010, 08:27 PM
|
|
|
Trouble in accessing `/home/USERNAME/.Xauthority'
>> 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
> sudo touch /root/.Xauthority
> and then the chown command should succeed. However, I don't know if that
> will work because perhaps the file may not be empty.
Step 4 will only work in Ubuntu pre 9.10.
Anyway, you cannot simply touch .Xauthority and expect X to run.
--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
|
|

03-17-2010, 08:31 PM
|
|
|
Trouble in accessing `/home/USERNAME/.Xauthority'
On 17 March 2010 19:41, Hamed Abdy <hamed.abdy@gmail.com> wrote:
> Hi.
> 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):
Are you sure you need a firewall? I am not saying you do not need one
but querying whether you do.
Colin
--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
|
|

03-17-2010, 08:56 PM
|
|
|
Trouble in accessing `/home/USERNAME/.Xauthority'
On 03/17/2010 02:27 PM, Tom H 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)
...
>
> Step 4 will only work in Ubuntu pre 9.10.
Can you explain please?
--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
|
|

03-17-2010, 08:59 PM
|
|
|
Trouble in accessing `/home/USERNAME/.Xauthority'
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
--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
|
|

03-17-2010, 09:05 PM
|
|
|
Trouble in accessing `/home/USERNAME/.Xauthority'
To NoOp:
"$ locate .Xauthority" does nothing.
$ ls -l ~/.Xauthority
ls: cannot access /home/hamed/.Xauthority: No such file or directory
$ ls -l /root/.Xauthority
ls: cannot access /root/.Xauthority: Permission denied
To Tom H:
Thank you.
So, what is the solution?
To Colin Law:
Security is so important for me.
Specially I heard that when you are using torrent, using firewall is necessary.
Hamed Abdy
On Thu, Mar 18, 2010 at 1:01 AM, Colin Law <clanlaw@googlemail.com> wrote:
> On 17 March 2010 19:41, Hamed Abdy <hamed.abdy@gmail.com> wrote:
>> Hi.
>> 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):
>
> Are you sure you need a firewall? *I am not saying you do not need one
> but querying whether you do.
>
> Colin
>
> --
> ubuntu-users mailing list
> ubuntu-users@lists.ubuntu.com
> Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
>
--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
|
|

03-17-2010, 09:56 PM
|
|
|
Trouble in accessing `/home/USERNAME/.Xauthority'
On 03/17/2010 03:05 PM, Hamed Abdy wrote:
Note: please bottom post on this list - thanks :-)
> To NoOp:
>
> "$ locate .Xauthority" does nothing.
> $ ls -l ~/.Xauthority
> ls: cannot access /home/hamed/.Xauthority: No such file or directory
> $ ls -l /root/.Xauthority
> ls: cannot access /root/.Xauthority: Permission denied
And that is the crux of the problem - you have no
/home/hamed/.Xauthority - the file is missing. So that is what needs to
be addressed first.
BTW: I just installed the package on Ubuntu 9.10 w/o issue following the
instuctions on the site. Note that I _do_ have an ~/.Xauthority file and
had one before I installed the package:
karmic@karmic:~$ locate .Xauthority
/home/karmic/.Xauthority
/home/karmic/tempdir/.Xauthority
karmic@karmic:~$ ls -l .Xauthority
-rw------- 1 karmic root 52 2010-02-08 11:52 .Xauthority
Note that the above was previously karmic:karmic & the
sudo chown USERNAME.root ~/.Xauthority
(sudo chown karmic.root ~/.Xauthority)
changed the permissions as expected.
I also forgot that you need to do the following to check your
/root/.Xauthority file:
karmic@karmic:~$ sudo su
[sudo] password for karmic:
root@karmic:/home/karmic# cd /root
root@karmic:~# ls -l .Xauthority
lrwxrwxrwx 1 root root 24 2010-03-17 15:29 .Xauthority ->
/home/karmic/.Xauthority
root@karmic:~# exit
exit
And you can see from here that the package is installed:
karmic@karmic:~$ apt-cache policy linux-firewall.org
linux-firewall.org:
Installed: 2.7
Candidate: 2.7
Version table:
*** 2.7 0
100 /var/lib/dpkg/status
karmic@karmic:~$
The above was installed on a "vanilla" karmic 9.10 test machine. I've
not tried any of the "firewall" features as yet.
So, now the missing ~/.Xauthority; no idea why this is/was missing on
your system. To see if ~/.Xauthority regenerates if missing, I renamed
the file on my test system to ~/x-.Xauthority-x and rebooted (remember
this is a test machine, so it doesn't matter if I screw it up).
Following the reboot I checked and no new ~/.Xauthority was generated.
So, we now have to figure out where the file originates from, and how to
restore yours.
--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
|
|

03-17-2010, 11:31 PM
|
|
|
Trouble in accessing `/home/USERNAME/.Xauthority'
On 03/17/2010 03:56 PM, NoOp wrote:
...
> So, now the missing ~/.Xauthority; no idea why this is/was missing on
> your system. To see if ~/.Xauthority regenerates if missing, I renamed
> the file on my test system to ~/x-.Xauthority-x and rebooted (remember
> this is a test machine, so it doesn't matter if I screw it up).
> Following the reboot I checked and no new ~/.Xauthority was generated.
> So, we now have to figure out where the file originates from, and how to
> restore yours.
Well... I found that ssh'ing into the machine using -X creates a new
~./Xauthority:
$ ssh -X karmic@<IPaddress>
karmic@<IPaddress>'s password:
Linux karmic 2.6.31-20-generic #57-Ubuntu SMP Mon Feb 8 09:05:19 UTC
2010 i686
To access official Ubuntu documentation, please visit:
http://help.ubuntu.com/
Last login: Mon Feb 8 11:44:34 2010
/usr/bin/X11/xauth: creating new authority file /home/karmic/.Xauthority
And that the file comes from xauth, so perhaps someone on the list can
assist in advising how to create the file from xauth (or other than ssh)?
--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
|
|

03-18-2010, 12:01 AM
|
|
|
Trouble in accessing `/home/USERNAME/.Xauthority'
On 03/17/2010 05:31 PM, NoOp wrote:
> On 03/17/2010 03:56 PM, NoOp wrote:
> ...
>> So, now the missing ~/.Xauthority; no idea why this is/was missing on
>> your system. To see if ~/.Xauthority regenerates if missing, I renamed
>> the file on my test system to ~/x-.Xauthority-x and rebooted (remember
>> this is a test machine, so it doesn't matter if I screw it up).
>> Following the reboot I checked and no new ~/.Xauthority was generated.
>> So, we now have to figure out where the file originates from, and how to
>> restore yours.
>
> Well... I found that ssh'ing into the machine using -X creates a new
> ~./Xauthority:
>
> $ ssh -X karmic@<IPaddress>
> karmic@<IPaddress>'s password:
> Linux karmic 2.6.31-20-generic #57-Ubuntu SMP Mon Feb 8 09:05:19 UTC
> 2010 i686
>
> To access official Ubuntu documentation, please visit:
> http://help.ubuntu.com/
>
> Last login: Mon Feb 8 11:44:34 2010
> /usr/bin/X11/xauth: creating new authority file /home/karmic/.Xauthority
>
> And that the file comes from xauth, so perhaps someone on the list can
> assist in advising how to create the file from xauth (or other than ssh)?
Added note: Were I you I'd simply purge this package altogether. I found
that I couldn't even download and check for updates without setting it
to "Switch to open firewall (not recommended)". IMO it's *much* more
trouble than it's worth. You can do this by:
$ sudo apt-get purge linux-firewall.org
The next are only required if you managed to install it completely:
$ sudo chown <username>:<usergroup> ~/.Xauthority
$ sudo su
$ cd /root
$ rm .Xauthority
That said; if you still wish to install it I'm happy to help :-) I
figure that folks can install pretty much what they wish. But, you'd be
wise to have a look at (and bookmark) these:
https://help.ubuntu.com/
https://help.ubuntu.com/community
https://help.ubuntu.com/community/CommonQuestions
https://help.ubuntu.com/community/Security
https://help.ubuntu.com/9.04/keeping-safe/C/index.html
https://help.ubuntu.com/9.04/keeping-safe/C/firewall.html
https://help.ubuntu.com/community/Firestarter
Personally I rely on my router's firewall.
--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
|
|

03-18-2010, 12:02 AM
|
|
|
Trouble in accessing `/home/USERNAME/.Xauthority'
>>>> 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)
>> Step 4 will only work in Ubuntu pre 9.10.
> Can you explain please?
Because the authority has been moved to
/var/run/gdm/auth-...-<user>-.../database
--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
|
|
|
All times are GMT. The time now is 02:09 PM.
VBulletin, Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2007 - 2008, www.linux-archive.org
|