LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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, 08: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, 01:10 AM   #2
crts
Senior Member
 
Registered: Jan 2010
Posts: 1,606

Rep: Reputation: 448Reputation: 448Reputation: 448Reputation: 448Reputation: 448
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, 11: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


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 06:22 PM
strange behaviour marsques Slackware 11 02-15-2006 07:05 PM
Strange Behaviour! joshuarowley LQ Suggestions & Feedback 1 12-08-2005 04:36 PM
Strange behaviour Anmol SUSE / openSUSE 2 10-28-2005 12:05 AM
Strange Behaviour mikeyt_3333 Linux - General 4 08-06-2001 04:07 PM


All times are GMT -5. The time now is 10:52 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration