Comment 23 for bug 1052038

Revision history for this message
Nobuto Murata (nobuto) wrote :

> And, no, I have not been able to reproduce this issue. I would *love* for you to find a way for me to trigger it :-)

I can reproduce this issue also in Amazon EC2.
I did it twice and the issue was exposed in 10 minutes in both cases.

I hope this information helps you.

====================

## launch quantal daily AMI
# Ubuntu 12.10 (Quantal Quetzal) Daily Build [20121007]
# ap-northeast-1 64-bit ebs t1.micro ami-827ac583
# http://cloud-images.ubuntu.com/quantal/20121007/

## add ecryptfs-daily PPA
$ sudo apt-add-repository ppa:ecryptfs/ecryptfs-utils-daily

$ sudo apt-get update && sudo apt-get install ecryptfs-utils expect

## add user1 with ecryptfs (password is "user1" in my case)
$ sudo adduser --encrypt-home user1

$ cat << EOF | tee ~/login-as-user1
#!/usr/bin/expect
spawn sudo login user1
expect -exact "Password: "
send -- "user1\r"
send -- "date -R && LANG=C ls -alF | head\r"
send -- "mount -l | grep --color=never user1\r"
send -- "keyctl show\r"
send -- "exit\r"
expect eof
EOF

$ chmod +x ~/login-as-user1

$ cat <<"EOF" | sudo tee /etc/cron.d/ecryptfs-test
* * * * * user1 sleep 30
* * * * * ubuntu sleep $(expr 30 - $(date +\%M) \% 5) && ~/login-as-user1 >> ~/ecryptfs-test.log
EOF

# user "ubuntu" can use sudo without password in my case.