Ask Your Question
0

You don't have permission to create or write to the file

asked 2019-03-01 10:25:25 +0000

talhussayen gravatar image

Every time I want to print a packet it gives me this error message. So does anyone have a solution to this problem?

edit retag flag offensive close merge delete

Comments

"Print" as in "send to a printer to be put on paper" or "print" as in "save formatted output to a text file"?

Guy Harris gravatar imageGuy Harris ( 2019-03-01 10:45:56 +0000 )edit

print an in "save the formatted output to a text file"

talhussayen gravatar imagetalhussayen ( 2019-03-01 11:01:39 +0000 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2019-03-01 11:20:45 +0000

talhussayen gravatar image

I tried to run the program as administrator and it worked

edit flag offensive delete link more

Comments

Rather than running the program as administrator, you could also try writing the file to a directory in which the user account has permission to write to. What directory were you trying to write the file to?

cmaynard gravatar imagecmaynard ( 2019-03-01 14:45:29 +0000 )edit

I.e., the error message mostly tells you what the problem is, although it doesn't distinguish between permission to overwrite an existing file and permission to create a new file in a given directory.

The solution is "try writing to a directory to which you have permission" or, if you are supposed to be allowed to write to that directory, "fix the ACL on the directory so you do have permission to write to it". Running as Administrator means that it'll let you do things that you may not want to do, and may let Wireshark do things that you didn't tell it to do; to quote the old README.packaging file in the Wireshark source (until 3.0):

WIRESHARK CONTAINS OVER TWO MILLION LINES OF SOURCE CODE. DO NOT RUN THEM AS ROOT.

where "AS ROOT" really means "AS ANY ACCOUNT WITH ELEVATED PRIVILEGES", including Administrator.

Guy Harris gravatar imageGuy Harris ( 2019-03-02 02:37:09 +0000 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2019-03-01 10:25:25 +0000

Seen: 88 times

Last updated: Mar 01