LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 09-07-2010, 07:12 AM   #1
luvshines
Member
 
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
crts
Senior Member
 
Registered: Jan 2010
Posts: 2,020

Rep: Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757
Hi,

when I tested it I got the same error. However,
Code:
sudo strace -f -o /tmp/passwd1 passwd <username>
worked. I am also using Ubuntu 10.04.
 
Old 09-08-2010, 10:14 AM   #3
luvshines
Member
 
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
 
  


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:47 AM.

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