Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 09-07-2010, 07:12 AM   #1
Registered: Apr 2009
Posts: 74

Rep: Reputation: 16
Unhappy strange behaviour for strace -f

Ran into a weird situation I had not seen before while using strace -f command

I had to strace my 'passwd' command since I needed to debug something. But 'strace -f -o /tmp/file passwd' command failed to run

eraser@viper-laptop:~$ strace -f -o /tmp/passwd1 passwd
Changing password for eraser.
(current) UNIX password:
passwd: Authentication token manipulation error
passwd: password unchanged

If I drop -f option it works fine. I am using Ubuntu 10.4(Lucid Lynx), recently switched from fedora to ubuntu.

Any idea what could be the issue ??
Old 09-08-2010, 12:10 AM   #2
Senior Member
Registered: Jan 2010
Posts: 1,617

Rep: Reputation: 450Reputation: 450Reputation: 450Reputation: 450Reputation: 450

when I tested it I got the same error. However,
sudo strace -f -o /tmp/passwd1 passwd <username>
worked. I am also using Ubuntu 10.04.
Old 09-08-2010, 10:14 AM   #3
Registered: Apr 2009
Posts: 74

Original Poster
Rep: Reputation: 16
I tried the same as super user and it worked as well.

What my assumption is that since it wouldn't ask the root user for the current passwd and directly asks for the new one, we encounter no issues

However, if it asks for the current passwd, -f of strace is sending some extra character due to which it fails to accept the current passwd itself. It can be wild guess, but that's the best I can think of


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
ps -ef strange behaviour ?? lionking_x Linux - Newbie 1 11-28-2007 05:22 PM
strange behaviour marsques Slackware 11 02-15-2006 06:05 PM
Strange Behaviour! joshuarowley LQ Suggestions & Feedback 1 12-08-2005 03:36 PM
Strange behaviour Anmol SUSE / openSUSE 2 10-27-2005 11:05 PM
Strange Behaviour mikeyt_3333 Linux - General 4 08-06-2001 03:07 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:26 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration