LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
LinkBack Search this Thread
Old 12-06-2006, 10:57 AM   #1
sgware
LQ Newbie
 
Registered: Jul 2006
Location: New Orleans, LA
Distribution: Kubuntu 6.10: Edgy Eft
Posts: 26

Rep: Reputation: 15
Wireshark does not have permission to save files?


Hi guys

For some reason every time I try to save a capture file in Wireshark (Ethereal), I get an error message telling me it doesn't have permission to create or edit files. I'm running it as root (well, with 'gksudo' at least since I'm on Kubuntu) and I have access to all my network interfaces... I just don't seem to be able to save files. Any ideas as to why this might be?

Thanks!
 
Old 12-06-2006, 11:03 AM   #2
matthewg42
Senior Member
 
Registered: Oct 2003
Location: UK
Distribution: Kubuntu (x86), Debian (PPC)
Posts: 3,528

Rep: Reputation: 60
Are you trying to save the files on a read-only filesystem?
 
Old 12-06-2006, 07:33 PM   #3
sgware
LQ Newbie
 
Registered: Jul 2006
Location: New Orleans, LA
Distribution: Kubuntu 6.10: Edgy Eft
Posts: 26

Original Poster
Rep: Reputation: 15
No... just in my home folder.
 
Old 12-06-2006, 07:47 PM   #4
matthewg42
Senior Member
 
Registered: Oct 2003
Location: UK
Distribution: Kubuntu (x86), Debian (PPC)
Posts: 3,528

Rep: Reputation: 60
What command are you using (paste the error message as well, put it all in [code] tags to aid readability)

Last edited by matthewg42; 12-15-2007 at 06:18 PM.
 
Old 12-06-2006, 10:26 PM   #5
sgware
LQ Newbie
 
Registered: Jul 2006
Location: New Orleans, LA
Distribution: Kubuntu 6.10: Edgy Eft
Posts: 26

Original Poster
Rep: Reputation: 15
Well I'm not really using a command... just clicking the save button, which has an image of a floppy disk.

The command used to launch it from the desktop is
Code:
kdesu wireshark
The error message is:
Code:
You don't have permission to move the capture file to "/home/stephen/foo"
Does that help any?

Last edited by sgware; 12-06-2006 at 10:28 PM.
 
Old 12-06-2006, 11:18 PM   #6
matthewg42
Senior Member
 
Registered: Oct 2003
Location: UK
Distribution: Kubuntu (x86), Debian (PPC)
Posts: 3,528

Rep: Reputation: 60
can you create a regular file /home/stephen/foo, for example with a text editor?
 
Old 12-06-2006, 11:28 PM   #7
sgware
LQ Newbie
 
Registered: Jul 2006
Location: New Orleans, LA
Distribution: Kubuntu 6.10: Edgy Eft
Posts: 26

Original Poster
Rep: Reputation: 15
Yes... I have not been getting this error in any other programs. Weird huh?
 
Old 12-06-2006, 11:44 PM   #8
matthewg42
Senior Member
 
Registered: Oct 2003
Location: UK
Distribution: Kubuntu (x86), Debian (PPC)
Posts: 3,528

Rep: Reputation: 60
Yup. I'm stumped.
 
Old 12-07-2006, 06:52 AM   #9
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,698
Blog Entries: 1

Rep: Reputation: 374Reputation: 374Reputation: 374Reputation: 374
Are you running Wireshark as root or as your normal user? If you are running as root, can you save a plain text file as root?
 
Old 12-08-2006, 02:08 AM   #10
sgware
LQ Newbie
 
Registered: Jul 2006
Location: New Orleans, LA
Distribution: Kubuntu 6.10: Edgy Eft
Posts: 26

Original Poster
Rep: Reputation: 15
It's launched with the kdesu/gksu command and it prompts me for my root password before starting, so I assume I am using it as root (otherwise, I wouldn't have access to my network interfaces).

Programs like Kate (text editor) can save files to my home folder both as root and non-root and with both the gksu and kdesu commands.

Last edited by sgware; 12-08-2006 at 02:13 AM.
 
Old 12-08-2006, 04:51 AM   #11
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 51
That's strange and funny !
At this state, You could run it through strace and output to a file.
Then grep for EACCES or ENOENT or /home/stephen/foo and go back a few lines to see what kind of weird thing happen before.
 
Old 01-05-2008, 11:02 AM   #12
kaniea
LQ Newbie
 
Registered: Sep 2004
Posts: 2

Rep: Reputation: 0
Workaround

I had the exact same problem and still haven't found the solution. But there is a simple work around. The program stores its traces in /tmp under a filename like etherXXX, the file is already in pcap format so you can just copy it to wherever you like.
 
  


Reply

Tags
ethereal, permission, wireshark


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I give a user permission to save files to /var/www/html? rotnay6000 Linux - Newbie 10 07-14-2009 08:45 PM
Problem installing wireshark with yum bozoka45 Fedora 4 10-12-2007 04:33 PM
Wireshark Help bgeddy Slackware 9 09-30-2006 12:34 PM
LXer: Ethereal changes name to Wireshark LXer Syndicated Linux News 0 06-10-2006 08:03 PM
How can I change files and save as... xstealthrtx Linux - Newbie 7 12-26-2004 01:30 AM


All times are GMT -5. The time now is 09:57 PM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration