PDA

View Full Version : [SOLVED] ICEauthority error



rem18
September 12th, 2012, 06:24 PM
Running 11.10...I changed password and then changed it back.
Now when I log on with passwrod after a few seconds I get the following message.
Could not update ICEauthority file /home/username/.ICEauthority with only option to log out.

I have tried several sudo and chmod commands and everytime it gives me a doesnt exist answer.
Its as if I lost my home folder etc.
I have seen various solutions proposed around.
But would like maybe to start from scratch on this one
Anyone resolved this?
Thanks

oldfred
September 12th, 2012, 06:45 PM
Did you also change username?

.dmrc errors- drs305
http://ubuntuforums.org/showthread.php?p=6161267
.ICEauthority errors
http://ubuntuforums.org/showthread.php?t=1590835
chmod 755 /home/username
sudo chown $USER:$USER /home/username/.ICEauthority
sudo chmod 644 /home/username/.ICEauthority
sudo chmod 644 $HOME/.ICEauthority
look at the permissions on ~/.Xauthority, too. It often gets changed when ~/.ICEauthority gets changed. The same fix applies.

rem18
September 12th, 2012, 09:00 PM
Thanks. So I ran
chown username /home/username/.dmrc
got no such file or directory

same for
sudo chmod 600 $HOME/.ICEauthority

ls -la $HOME/.ICEauthority
got no such file or directory

sudo chown $USER:$USER /home/username/.ICEauthority
got chown: missing operand after antony:antony/home/antony/ICEauthority

sudo chmod 644 /home/username/.ICEauthority
got chmod: cannot access '/antony/.ICEauthority' no such file or directory

sudo chmod 644 $HOME/.ICEauthority
again No such file or directory

How do I look at the permissions?

Thnaks antony

NikTh
September 12th, 2012, 09:20 PM
look at the permissions on ~/.Xauthority, too. It often gets changed when ~/.ICEauthority gets changed. The same fix applies.

Based on upon..

try


sudo chown antony:antony ~/.Xauthority

Thanks

rem18
September 13th, 2012, 09:24 AM
sudo chown antony:antony ~/.Xauthority

asks for password after which I get
'/home/antony/.xauthority' No such File or directory

NikTh
September 13th, 2012, 11:14 AM
Hi ,

you know , these two files .Xauthority and .ICEauthority , even if you delete them , re-created . It seems weird how you lost these files . Maybe you moved your /home directory or something ? Is the "route" /home/antony/ exists ?
What is in /home ?

ls /home

I suggest to boot from recovery mode and click on root

then give first this command
mount -o remount,rw /and then change your password again with this command

passwd antonyit will ask you to confirm twice your new UNIX password. Then reboot and see if something fixed.

Thanks

rem18
September 13th, 2012, 01:39 PM
Yeah this is what I said in the negining its as if
my home got moved or something
but how if all I did was change the password?

ls /home
gives antony
ls /home/antony (in case you meant that)
gives Access-Your-Private-Data.desktop README.txt
then back to antony@antony

rem18
September 13th, 2012, 02:00 PM
I tried sudo bash and got root@antony then tried


mount -o remount,rw /
but it just took me back to root@antony
I entered
passwd antony anyay and updated passwrd rebooted
and used new password.
got same message
Could not update ICEauthority file /home/username/.ICEauthority
with only option to log out.

steeldriver
September 13th, 2012, 02:11 PM
The only thing I can think of here is that your entire /home/anthony directory is unwriteable - either because of permissions or because the whole partition (or disk) is full - you can check with


df -h


ls -l /home

rem18
September 13th, 2012, 03:34 PM
no its not full
all I did was change the password and then change it back thats all

rem18
September 13th, 2012, 03:37 PM
/dev/sda8 use 23%
all others 1%

NikTh
September 13th, 2012, 04:53 PM
Hi ,
please give the result of


ls -ld /home/antony/
cat /home/antony/Access-Your-Private-Data.desktop
cat /home/antony/README.txt

Thanks

rem18
September 13th, 2012, 08:00 PM
ls -ld /home/antony/
= dr-x------ 3 antony antony 4096 2011-12-29 21.37 /home/antony/

cat /home/antony/Access-Your-Private-Data.desktop
_Name=Access Your Private Data
-Genericname=Access Your Private Data
Exec=/usr/bin/ecryptfs-mount-private
Terminal=true
Type=Application
Categories=System;Security;
X-Ubuntu-Gettext-Domain=encryptfs-utils

cat /home/antony/README.txt
THIS DIRECTORY HAS BEEN UNMOUNTED TO PROTECT YOUR DATA.

From the desktop, click on:
"Access Your Private Data"

or

From the command line. run:
ecryptfs-mount-private

NB.To be safe I am not trying any of these commands till you advise
Thanks

NikTh
September 13th, 2012, 11:30 PM
Hi ,

ok , now try this command


sudo mv ~/Access-Your-Private-Data.desktop /etc/xdg/autostart/

Hopefully above command will solve your problem.

Thanks

rem18
September 14th, 2012, 08:34 AM
Hi Thanks for that
I did it it asked me for the password but after just took me back to antony@antony
I switched off and re-booted entered password etc but still got could not update ICEauthority
Thanks

NikTh
September 14th, 2012, 10:37 AM
Hi ,
file moved ?

ls -l /home/antony/ IF not , try to move the file from Recovery Mode

Click root
then

mount -o remount,rw /
mv ~/Access-Your-Private-Data.desktop /etc/xdg/autostart/and change again your password with

passwd antonyReboot to see.

Thanks

rem18
September 14th, 2012, 11:00 AM
ls -l /home/antony/
5396053 Access-Your-Private-Data.desktop 5396052 README.txt
antony@antony

I prefer you advise me clearly how or what you mean by click root
Thanks

rem18
September 14th, 2012, 11:25 AM
do you mean to write sudo before the command you gave me or to write sudo bash?

NikTh
September 14th, 2012, 06:10 PM
Hi ,

you must boot from [Recovery Mode] to follow what I wrote before.

From grub menu select the [Recovery Mode] . Then select ROOT and then follow the commands with order


mount -o remount,rw /
mv ~/Access-Your-Private-Data.desktop /etc/xdg/autostart/and then

passwd antonychange your password again . Twice confirmation needed.

Then give this command to reboot

rebootThanks

rem18
September 14th, 2012, 06:26 PM
NIK its what you mean about select root that I am not clear about
Then select ROOT......
thanks

NikTh
September 14th, 2012, 06:39 PM
Yes .
When you boot in recovery mode you will be prompted by a menu to select what you want.
There you must select ROOT . You will see it.

You will not have any desktop environment there so Be-careful with the commands. Write them down to a paper and execute them with the order I gave them.

Everything matters when you execute a command. Spaces , dots , backslashes..

Tip: You can use Tab key to auto-fill the paths.

Example

mv ~/Acc^Tab^Tab means that you press Tab key at this point. This will auto-fill the name for you.

mv ~/Acc^Tab = ~/Access-Your-Private-Data.desktopI hope not confusing you.

Thanks

rem18
September 14th, 2012, 10:01 PM
NIK OK now I understand about how you want me to go to the root now.
However I can write
mv ~/Acc^Tab

But the only TAB I have on the keyboard is the one on l\h\s
of keyboard but when I press it and after hit return I says mv: missing destination
file operand after '/root/Ac^

I dont have a problem to copy your instructions as I am using
a different pc for your instructions to the one that has the problem
My problem now if to make the tab or do mean something else?
Also you have changed the instructions of what you want me to do?
Thanks

rem18
September 14th, 2012, 10:08 PM
For your information I tried the instructions you gave me before
mount -o remount,rw /
gave result re-mounted
but
mv ~/Access-Your-Private-Data.desktop /etc/xdg/autostart/
gave mv: cannot stat

NikTh
September 14th, 2012, 11:57 PM
For your information I tried the instructions you gave me before
mount -o remount,rw /
gave result re-mounted
but
mv ~/Access-Your-Private-Data.desktop /etc/xdg/autostart/
gave mv: cannot stat

Hi ,
I don't know if this is my mistake. Maybe you must give the full path.
Again : Be careful when your write commands . All matters. Capital , backslashes , dots ...etc. If one dot missing then the mv command cannot find the file to move.


mv /home/antony/Access-Your-Private-Data.desktop /etc/xdg/autostart/An alternative method could be
cp /home/antony/Access-Your-Private-Data.desktop /etc/xdg/autostart/ and IF and ONLY IF cp command NOT return any error , then you can remove-delete the file
rm /home/antony/Access-Your-Private-Data.desktopThat we want to achieve is to mv(move) the file Access-Your-Private-Data.desktop to the path that belongs.

I assume (but I am not sure) you , somehow , accidentally moved this file in your /home directory.
Also I assume that you have been encrypted your /home directory.
This .desktop file , has a command inside that must executed at startup .


cat /home/antony/Access-Your-Private-Data.desktop
_Name=Access Your Private Data
-Genericname=Access Your Private Data
Exec=/usr/bin/ecryptfs-mount-private
Terminal=true
Type=Application
Categories=System;Security;
X-Ubuntu-Gettext-Domain=encryptfs-utils



I dont have a problem to copy your instructions as I am using
a different pc for your instructions to the one that has the problem
My problem now if to make the tab or do mean something else?

If you have no problem to copy the instructions then , forger about Tab key.
Tab key is another story. Its a facility that you can use to fill automatically paths/names in Terminal.

Also you have changed the instructions of what you want me to do?

No, the instructions are the same. The general idea is to move that file , from your /home to /etc/xdg/autostart/

Gone fishing
September 15th, 2012, 02:33 AM
Something is odd what is your user name? what is the name of your home directory? remember Linux is case specific? I would chown the whole of your home directory recurisively using the -R switch

rem18
September 15th, 2012, 08:43 AM
@GoneFishing.
As I said all I did was change my login password and then change it back again and after it gave me this error.
I did not do anything but shut down after re-setting the password
I did not touch any directories or anything else.
The only thing I did do was the fast shutdown on this laptop by holding down off uotton
Can you write me out the specific code so I dont make any error
Thanks

rem18
September 15th, 2012, 08:50 AM
OK
mv /home/antony/Access-Your-Private-Data.desktop /etc/xdg/autostart/
gives cannot stat no such file or directory
An alternative method could be Code:
cp /home/antony/Access-Your-Private-Data.desktop /etc/xdg/autostart/
gives cannot stat no such file or directory

and IF and ONLY IF cp command NOT return any error , then you can remove-delete the file

I think form what we did before we are sure the data is there right also becuase just changing the password wouldnt cancel it.
Maybe its time to upgrade the laptop from 11.10 to 12.04 and first copy my data what do you guys think?
I have to go and get another external HD as I am short of space but maybe this is the answer now and you guys want to advise me how to do it safely to preserve the most data and permissions?
Alternatively I could copy the data into the w7 partition I have on this laptop as there is plenty of space there and Ubuntu shouldnt touch w7 I Think
What do you think?
Thanks

NikTh
September 15th, 2012, 08:56 AM
Alternatively I could copy the data into the w7 partition I have on this laptop as there is plenty of space there and Ubuntu shouldnt touch w7 I Think
What do you think?
Thanks

Hi ,
yes you can do this alternative . Copy your important data to W7 partition and then install Ubuntu 12.04 from a Live CD/Usb. It would be a GOOD IDEA to NOT UPGRADE. Fresh Install is much better (especially in your situation).

And DO NOT encrypt your /home directory during installation nor after.
If you want you can encrypt one folder to keep your secrets :)

Good Luck


Thanks

rem18
September 15th, 2012, 08:57 AM
I just tried to login as other to at least use that laptop to download the 12.04 64b but it hangs
Please advise how to create a new user. So I can at least use the laptop to download Ubuntu 64b
Thanks

rem18
September 15th, 2012, 09:00 AM
@Nik
First we are sure the home directory is there right?
Second it wont be inaccessible or somethingonce copied over an launched on new system? If its encrypted etc?
Third please advise me how to copy it over to w7 partition safely thanks
Fourth as I wrote at the moment I cant access login as antony was only user

rem18
September 15th, 2012, 09:07 AM
Just thinking what about the very longsecurity paraphrase that Ubuntu asks you to make? Would that be of any use ?
I have that

NikTh
September 15th, 2012, 05:37 PM
@Nik
First we are sure the home directory is there right?
Second it wont be inaccessible or somethingonce copied over an launched on new system? If its encrypted etc?
Third please advise me how to copy it over to w7 partition safely thanks
Fourth as I wrote at the moment I cant access login as antony was only user

Yes , you have right. I didn't think of that.

You cannot access your files if are encrypted. Neither from LiveCD. EncryptFS is a powerful tool.

Try to do something else..

When you are in login screen press Ctrl+Alt+F2 to revert in Console. (Black screen). Login there with username & password and the give these commands


sudo service lightdm stop
sudo ecryptfs-mount-private
sudo service lightdm start

Try to login again.

Thanks

rem18
September 15th, 2012, 06:13 PM
Hello yes
So I entered
sudo service lightdm stop
asked for passwrod which I entered
=Uknown instance:

sudo ecryptfs-mount-private
= Enter your login passphrase
I tried entering my paraphrase
but that wasnt accepted and after it gave me
error: your passphrase is incorrect

rem18
September 15th, 2012, 06:24 PM
On my passphrase I have an 0 with a dot in the middle..I cant remember if I did this to undicate a zero or if maybe there is a symbol with this? do you know of one?

NikTh
September 15th, 2012, 06:30 PM
Hello yes
So I entered
sudo service lightdm stop
asked for passwrod which I entered
=Uknown instance:

sudo ecryptfs-mount-private
= Enter your login passphrase
I tried entering my paraphrase
but that wasnt accepted and after it gave me
error: your passphrase is incorrect

Hi ,

you know ... if you manage to give your passphrasse correctly , then I think your problem solved. It will be not necessary to re-install Ubuntu.

A zero with dot in the middle ?
Maybe another language ?
Or maybe you mean this @ (Shift + 2 in my pc).

rem18
September 15th, 2012, 09:21 PM
I seem plagued with problems....
My password phrase that I kept is not accepted maybe I wrote it down wrong I dont know.
I think this article below is probably the solution but as my luck would have it this laptop has duel graphics so I cant see the live cd desktop due to a driver problem (I need to install the Radeon driver each time I install or update).
Take a look
http://askubuntu.com/questions/38336/how-do-i-recover-my-data-from-an-encrypted-home-directory

Let me know if you can think of a solution for me to see the live cd desktop to try this method if not I will have to give up and install over and loose everything since last backup.
Is there a way to save my home folder from being overwitten somewhere in case eventually I find a solution?
Thanks

NikTh
September 16th, 2012, 05:55 AM
Hi ,


I think this article below is probably the solution but as my luck would have it this laptop has duel graphics so I cant see the live cd desktop due to a driver problem (I need to install the Radeon driver each time I install or update).
Take a look
http://askubuntu.com/questions/38336/how-do-i-recover-my-data-from-an-encrypted-home-directory

Yes , this is a hack . I never used it , but it seems good.


Let me know if you can think of a solution for me to see the live cd desktop to try this method if not I will have to give up and install over and loose everything since last backup.
Is there a way to save my home folder from being overwitten somewhere in case eventually I find a solution?


If you have problems with your graphics in LiveCD , then try the NOMODESET boot option.
See here how : http://ubuntuforums.org/showthread.php?t=1613132

OR

try another LiveCD . (Ubuntu 12.10 , or 11.10)

Thanks

rem18
September 16th, 2012, 08:23 AM
Nik thanks for that link
But I already know about nomodset
But it brings me to ubuntu@ubuntu and I dont know where to go from there
thanks

rem18
September 16th, 2012, 05:35 PM
I solved this now I hooked the laptop up to a HDMI ona TV and can see the live cd desktop.
Remember this if you get a black screen
But even following the proceedure it tells me my login password is wrong???!!!

NikTh
September 16th, 2012, 07:25 PM
Hi ,


But even following the proceedure it tells me my login password is wrong???!!!

Hi ,
I never used it , but it seems good.

As you can see , I told you that I never used it and for that I cannot help you with this specific hack.

Although I believe that encrypt-fs is a strong tool and you cannot "crack" it so easy.

Did you try to move the file to the /etc/xdg/autostart/ ?

Just mount the drive where ubuntu installation is , and then connect to your /home and move the file

e.g (I assume that Ubuntu installation is on /dev/sda2)


sudo mount /dev/sda2 /mnt
cd /mnt
sudo mv home/antony/Access-Your-Private-Data.desktop etc/xdg/autostart/ be careful here cuz etc and home are listed UNDER /mnt , so the backslash in front of etc (/etc) or home(/home) will not do the job we want.
Just give the commands with the order I gave them , but find the correct /dev/sd? for your Ubuntu installation.
You can see it with
sudo fdisk -lIn case that you cannot find the file (Access-Your-Private-Data.desktop) or mv command gives error , then give here the results of

ls home/
ls home/antony Of course FIRST you must be connected to /mnt

sudo mount /dev/sda2 /mnt
cd /mnt
ls home/
ls home/antony/Thanks

rem18
September 17th, 2012, 07:56 AM
Hi
In the crack for live cd I was able to do everything accept that it would not recognise the login password for the directory even if it works for root etc.
I could find the directory media/XXXXXXXXXXXXXXX/home/antony/private etc
So its there

Anyway back to what you told me so I drop down to root...I believe its sd8 that I have.
Its the Linux directory right?
sudo mount /dev/sda2 /mnt
Get=It gives me dev/sda8/already mounted or busy cd /mnt sudo mv home/antony/Access-Your-Private-Data.desktop etc/xdg/autostart/
cannot stat no such file or directory

I reality I have downloaded 12.04 64b as I thought to give up. It would be nice to save the last home directory but we are doing a lot of work without sucess.
If you have an idea how to save the home directory data it would be nice but I think I need permissions,
Regards

rem18
September 17th, 2012, 08:01 AM
ls home/ = cannot....no such.......
ls home/antony = no such

oldfred
September 17th, 2012, 03:19 PM
Spaces and order are important. Normally after any command you need a space. And paths have to be valid. So home/ is not valid.

fred@fred-Precise:~$ ls home/
ls: cannot access home/: No such file or directory
fred@fred-Precise:~$ ls /home
fred

NikTh
September 17th, 2012, 05:58 PM
Spaces and order are important. Normally after any command you need a space. And paths have to be valid. So home/ is not valid.

fred@fred-Precise:~$ ls home/
ls: cannot access home/: No such file or directory
fred@fred-Precise:~$ ls /home
fred

Inside the /mnt directory (consider /mnt as /root) you can give the command
ls home/ do this in your current install


cd /
ls home/

Anyway back to what you told me so I drop down to root...I believe its sd8 that I have.
Its the Linux directory right?
sudo mount /dev/sda2 /mnt
Get=It gives me dev/sda8/already mounted or busy cd /mnt sudo mv home/antony/Access-Your-Private-Data.desktop etc/xdg/autostart/
cannot stat no such file or directory

Please follow these :

1. Boot from the LiveCD/Usb you have
2. Click "Try Ubuntu"
3. Open a terminal and give this command

sudo fdisk -lPost the results back here.

Thanks

rem18
September 17th, 2012, 06:38 PM
cd / ls home/

= antony in blue
then back to root
Will try the cd test now revert in a while.

@Fred
Fred dont judge me by the pastings here
on laptop I triple check if it doesnt give
a result but its ard to write code all the time
of course so mistakes can happen

rem18
September 17th, 2012, 06:53 PM
@nik
in live cd
sudo fdisk -l
= a whole list of partitions from dev/sda1 to sda9
What do you want me to do now?
Thanks

rem18
September 17th, 2012, 06:57 PM
I think I want to now just install 12.04 so if I can save my old home folder thats nice

Maybe its worth an over install attempt first rather than a clean isntall
Maybe it would recover my files if I use same user name and password?
But at least I might have my programmes and settings?

If not I can still run a clean install after
thanks

NikTh
September 17th, 2012, 07:20 PM
Hi ,
If you are tired you can do a fresh install . I doubt if you can recover your encrypted data after a fresh install.

If everything are encrypted , then you cannot save anything. Either your data or configurations files or settings. You must De-crypt first and then you can save.

Yes give the results here. Post them inside
brackets


The Results Here

Thanks

rem18
September 17th, 2012, 07:33 PM
@nik
Lets try one more time if you have an idea

I sent you the result
What did you need after
in live cd
sudo fdisk -l
= a whole list of partitions from dev/sda1 to sda9
What do you want me to do now?
Thanks

NikTh
September 17th, 2012, 07:36 PM
@nik
Lets try one more time if you have an idea

I sent you the result
What did you need after
in live cd
sudo fdisk -l
= a whole list of partitions from dev/sda1 to sda9
What do you want me to do now?
Thanks

Give the results here and we will see.

do not forget : Put the results between
brackets

Thanks

rem18
September 17th, 2012, 07:42 PM
ahh you need them all? its a lot and in live cd I dont think I can do a screen shot maybe I need to take a photo.

NikTh
September 17th, 2012, 08:02 PM
ahh you need them all? its a lot and in live cd I dont think I can do a screen shot maybe I need to take a photo.


I solved this now I hooked the laptop up to a HDMI ona TV and can see the live cd desktop.
Remember this if you get a black screen

Why ,photo ?

Just copy-paste the results from terminal in here.

You said you sovled the problem with screen.

rem18
September 17th, 2012, 08:09 PM
No I am using another laptop that one is not working now as I cant access login can I?
here I include a photo jpeg to see ok?

NikTh
September 17th, 2012, 08:54 PM
No I am using another laptop that one is not working now as I cant access login can I?
Hi,

Well , lets clarify some things , cuz either I misunderstood or you misunderstood.

Do you have a LiveCD or LiveUsb of Ubuntu ? LiveCD or Usb it means the CD or Usb where you installed Ubuntu.

IF yes , then boot from there. Put the CD or USb in Corrupted Laptop and boot from there.

After a successful boot , click "Try Ubuntu" and open a terminal and post here the results of , sudo fdisk -l.

You can open Firefox and post here anything you want , Yes from a LiveCD or Usb (Firefox included).

Can you do that ?

Thanks

rem18
September 17th, 2012, 09:14 PM
Nik there is no wifi in live cd.
So I saved it to a text file and now I paste it here OK?

ubuntu@ubuntu:~$ sudo fdisk -l

Disk /dev/sda: 640.1 GB, 640135028736 bytes
255 heads, 63 sectors/track, 77825 cylinders, total 1250263728 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0xc469f6b2

Device Boot Start End Blocks Id System
/dev/sda1 * 2048 206847 102400 7 HPFS/NTFS/exFAT
/dev/sda2 206848 482551807 241172480 7 HPFS/NTFS/exFAT
/dev/sda3 482553854 1201666047 359556097 f W95 Ext'd (LBA)
Partition 3 does not start on physical sector boundary.
/dev/sda4 1201666048 1250263039 24298496 27 Hidden NTFS WinRE
/dev/sda5 482553856 842109951 179778048 7 HPFS/NTFS/exFAT
/dev/sda6 1194369024 1201666047 3648512 82 Linux swap / Solaris
/dev/sda7 1187072000 1194366975 3647488 82 Linux swap / Solaris
/dev/sda8 842110976 1179760639 168824832 83 Linux
/dev/sda9 1179762688 1187059711 3648512 82 Linux swap / Solaris

Partition table entries are not in disk order

NikTh
September 17th, 2012, 09:27 PM
Ok ,

as you are there now , I mean LiveCD in problematic Laptop , do as follows and give the results back here (save them in .txt as you did)


sudo mount /dev/sda8 /mnt
ls /mnt

Thanks

rem18
September 17th, 2012, 09:34 PM
here you are
ubuntu@ubuntu:~$ sudo mount /dev/sda8 /mnt
ubuntu@ubuntu:~$ ls /mnt
bin dev initrd.img lib64 mnt root selinux tmp vmlinuz
boot etc initrd.img.old lost+found opt run srv usr vmlinuz.old
cdrom home lib media proc sbin sys var work
ubuntu@ubuntu:~$

NikTh
September 17th, 2012, 09:41 PM
Continue with

cd /mnt/home/
ls

rem18
September 17th, 2012, 09:48 PM
ubuntu@ubuntu:~$ cd /mnt/home
ubuntu@ubuntu:/mnt/home$ ls
antony
ubuntu@ubuntu:/mnt/home$

NikTh
September 17th, 2012, 09:56 PM
cd antony && ls

rem18
September 17th, 2012, 10:01 PM
ubuntu@ubuntu:~$ cd /mnt/home
ubuntu@ubuntu:/mnt/home$ ls
antony
ubuntu@ubuntu:/mnt/home$ cd antony && ls
bash: cd: antony: Permission denied
ubuntu@ubuntu:/mnt/home$ ^C
ubuntu@ubuntu:/mnt/home$

NikTh
September 17th, 2012, 10:03 PM
sudo -i
cd antony
ls

rem18
September 17th, 2012, 10:09 PM
ubuntu@ubuntu:~$ cd /mnt/home
ubuntu@ubuntu:/mnt/home$ ls
antony
ubuntu@ubuntu:/mnt/home$ cd antony && ls
bash: cd: antony: Permission denied
ubuntu@ubuntu:/mnt/home$ ^C
ubuntu@ubuntu:/mnt/home$ sudo -i
root@ubuntu:~# cd antony
-bash: cd: antony: No such file or directory
root@ubuntu:~# ls
root@ubuntu:~#

NikTh
September 17th, 2012, 10:11 PM
cd /mnt/home/antony/
ls

rem18
September 17th, 2012, 10:16 PM
ubuntu@ubuntu:~$ cd /mnt/home
ubuntu@ubuntu:/mnt/home$ ls
antony
ubuntu@ubuntu:/mnt/home$ cd antony && ls
bash: cd: antony: Permission denied
ubuntu@ubuntu:/mnt/home$ ^C
ubuntu@ubuntu:/mnt/home$ sudo -i
root@ubuntu:~# cd antony
-bash: cd: antony: No such file or directory
root@ubuntu:~# ls
root@ubuntu:~# sudo -i
root@ubuntu:~# cd antony
-bash: cd: antony: No such file or directory

root@ubuntu:~# cd /mnt/home/antony/
root@ubuntu:/mnt/home/antony# ls
README.txt
root@ubuntu:/mnt/home/antony# ^C
root@ubuntu:/mnt/home/antony#

NikTh
September 17th, 2012, 10:24 PM
root@ubuntu:~# cd /mnt/home/antony/
root@ubuntu:/mnt/home/antony# ls
README.txt

I cannot see the .desktop file. Where is it ? disappeared ? (Access-Your-Private-Data.desktop)

lets see

ls /mnt/etc/xdg/autostart | grep -i accessor


sudo -i
cd /mnt
find -name Data.desktop

rem18
September 17th, 2012, 10:34 PM
Hi I did them both for you

root@ubuntu:/mnt/home/antony# ls /mnt/etc/xdg/autostart | grep -i access
Access-Your-Private-Data.desktop
root@ubuntu:/mnt/home/antony#
root@ubuntu:/mnt/home/antony# sudo -i
root@ubuntu:~# cd /mnt
root@ubuntu:/mnt# find -name Data.desktop
root@ubuntu:/mnt#

NikTh
September 17th, 2012, 10:41 PM
root@ubuntu:/mnt/home/antony# ls /mnt/etc/xdg/autostart | grep -i access
Access-Your-Private-Data.desktop

It seems that , somehow you successfully moved the file to the right place.

I cannot help anymore. Logically you have no problem now , except that you must know your Passphrase (encrypt-fs password) to access your data.

That was my goal

The general idea is to move that file , from your /home to /etc/xdg/autostart/

We succeed it .

From now on , I cannot help to recover your data IF you don't know your Passphrase.

Thanks

rem18
September 17th, 2012, 10:47 PM
I have the passphrase but it doesnt work it seems but I just saw that the 0(zero) in terminal is the zero with dot in middle and I have that in my passphrase so maybe thats the answer to why I cant get passphrase to work
Do you think that it is sensitive to this symbol?
Can you remind me how to try and get to the situation to enter passphrase again please?
Thanks

NikTh
September 17th, 2012, 10:54 PM
I have the passphrase but it doesnt work it seems but I just saw that the 0(zero) in terminal is the zero with dot in middle and I have that in my passphrase so maybe thats the answer to why I cant get passphrase to work
Do you think that it is sensitive to this symbol?
Of course is sensitive. To all symbols , numbers , Capitals or anything else.
The symbol O with dot in the middle in terminal, is zero.


Can you remind me how to try and get to the situation to enter passphrase again please?


Now that you have the file in right place , logically you will have no problem. It will just ask you for the password (Passphrase).

Or else ,you must run bellow command to the terminal

sudo ecryptfs-mount-privateBe cause of sudo , you must give both passwords. First yours (as admin) and then it will ask you for the Passphrase.

Thanks (Good Luck)

rem18
September 17th, 2012, 11:00 PM
No
sudo ecryptfs-mount-private
gives encrypted private directory is not setuo properly

rem18
September 17th, 2012, 11:07 PM
No
sudo ecryptfs-mount-private
gives encrypted private directory is not setup properly

rem18
September 17th, 2012, 11:25 PM
so let me expalin better
It finds the encrypted directory and asks me for my login passphrase but when I use it says its wrong.......

ubuntu@ubuntu:/media$ sudo ecryptfs-recover-private
INFO: Searching for encrypted private directories (this might take a while)...
INFO: Found [/mnt/home/.ecryptfs/antony/.Private].
Try to recover this directory? [Y/n]: y
INFO: Enter your LOGIN passphrase...
Passphrase:

NikTh
September 18th, 2012, 12:23 AM
so let me expalin better
It finds the encrypted directory and asks me for my login passphrase but when I use it says its wrong.......

ubuntu@ubuntu:/media$ sudo ecryptfs-recover-private
INFO: Searching for encrypted private directories (this might take a while)...
INFO: Found [/mnt/home/.ecryptfs/antony/.Private].
Try to recover this directory? [Y/n]: y
INFO: Enter your LOGIN passphrase...
Passphrase:

I assume that above is from LiveCD. Cuz I see /mnt/home/..........

So try to use the hack from askubuntu.com .

Create a user with the same name (antony) and then logout and login with this username.
Then give again the command
sudo ecryptfs-recover-private and try the Passphrase again.

Thanks

rem18
September 18th, 2012, 07:40 AM
Hi Nik
So I did that again
I under livecd I created an admin user with same name and password as my original
after finding the directory It asks for my login password
NB LOGIN password not mount password
I give it
it says error look here

antony@ubuntu:~$ sudo ecryptfs-recover-private
INFO: Searching for encrypted private directories (this might take a while)...
INFO: Found [/media/b2e6686c-4054-498b-a40f-f1235530aeb0/home/.ecryptfs/antony/.Private].
Try to recover this directory? [Y/n]: y
INFO: Enter your LOGIN passphrase...
Passphrase:
Error: Unwrapping passphrase and inserting into the user session keyring failed [-5]
Info: Check the system log for more information from libecryptfs
antony@ubuntu:~$

so lets go back to the begining.
I changed my 6 digit login password to an 8 digit one for antony then after a few minutes I changed it back again.
I know it accepted this as it it needs password to set new one right.
I powered down as a fast power off just holding the power button on this laptop.. I do it always for all laptops as then everything is back when I power on and Ubuntu does this sooo well.
Later I switched on and logged in and If it didnt like the login password now it would have stopped me in login not have gone on for 1m right?after 1m it gives this ICEauthority message.
So it looks like the login password was ok but it couldnt find ICE.

So we have seen the directory is there as its listed also above media/b2xxxxxxxxxxx
I can use my login password for root too
But it wont accept it now for the home encrypt
But it doesnt ask me for the mount password which I have (the 32digit one created by ubuntu).
Also this mount password is a bugger as I wrote it on a paper but its so complicated that I am not even 100% sure of my own handwriting.. So I suggest to everyone to print it rather than write it by hand..

Ok is this all now clear
Any suggestions out there?

rem18
September 19th, 2012, 03:46 PM
@Nik
I have solved this.
The problem was with 11.10 in some way.
I had given up so I put the 12.04 cd in to start the new installation.
Well I thought that I would just try the proceedure 1 more time.

ubuntu@ubuntu:/media$ sudo ecryptfs-recover-private
INFO: Searching for encrypted private directories (this might take a while)...
INFO: Found [/mnt/home/.ecryptfs/antony/.Private].
Try to recover this directory? [Y/n]: y

Well with the 12.04 live cd it all went correctly and offered me the chance to use my mount passphrase at last
And I just copied the home directory into my w7 partition while I re-installed.
So the lesson is use the 12.04 live cd even if you are running 11.10 etc.
Alls well that ends well.

Nik if you read this let me know and thanks for your all your efforts.

NikTh
September 19th, 2012, 08:11 PM
Hi ,
VERY GOOD news. !!!

Glad you solved it.

Thanks