LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 10-18-2020, 08:17 PM   #1
insomniacno1
LQ Newbie
 
Registered: Aug 2017
Posts: 8

Rep: Reputation: Disabled
16.04 - Permission denied though I'm sudo and have permission to file


Hi all,

I installed exFAT to be able to access SDCARDs formatted with this, and when installing from terminal I got this error:

Processing triggers for man-db (2.7.5-1) ...
/usr/bin/mandb: can't open /usr/share/man/man1/7zr.1.gz: Permission denied

And the installation continued.

I have seen this message before when installing, and I checked by re-installing from Synaptics, the same error occur there(in terminal).

I checked the file /usr/man/man1/7zr.1.gz and my User have full permission


Screenshot from synaptics atached.


Why am I getting this error?

My system is Peach OSI TW 16.04(I use my system for specific purpose and can't upgrade right now) - 64bit LTS - build on Xubuntu.

Kernel: 4.4.0-190-generic
DE: Xfce
WM: Xfwm4
Shell: bash 4.3.48

Thank you in advance

Jan
Attached Thumbnails
Click image for larger version

Name:	Permission denied.png
Views:	28
Size:	58.5 KB
ID:	34335  

Last edited by insomniacno1; 10-21-2020 at 09:31 PM. Reason: corrected path to file
 
Old 10-19-2020, 08:51 PM   #2
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 17,102
Blog Entries: 27

Rep: Reputation: 5251Reputation: 5251Reputation: 5251Reputation: 5251Reputation: 5251Reputation: 5251Reputation: 5251Reputation: 5251Reputation: 5251Reputation: 5251Reputation: 5251
What are the permissions on the directory and file in question?
 
Old 10-20-2020, 04:58 AM   #3
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 15,990

Rep: Reputation: 5293Reputation: 5293Reputation: 5293Reputation: 5293Reputation: 5293Reputation: 5293Reputation: 5293Reputation: 5293Reputation: 5293Reputation: 5293Reputation: 5293
Quote:
Originally Posted by insomniacno1 View Post
I checked the file /usr/man/man1/7zr.1.gz and my User have full permission
That can be an issue. It must not be owned by your user. Would be nice to answer to post #2.
 
1 members found this post helpful.
Old 10-21-2020, 09:35 PM   #4
insomniacno1
LQ Newbie
 
Registered: Aug 2017
Posts: 8

Original Poster
Rep: Reputation: Disabled
Hi frankbell, I have attached screenshot showing the permissions

Looks like it has to do with 7zip which I had to install myself, in order to unzip .gz files as Archiver were not working properly at the time.

Should I change the ownership to root?

@pan64 -I have done so now.
Attached Thumbnails
Click image for larger version

Name:	Permission denied 2.png
Views:	8
Size:	156.0 KB
ID:	34366   Click image for larger version

Name:	Screenshot_2020-10-22_09-31-15.png
Views:	4
Size:	121.1 KB
ID:	34367  

Last edited by insomniacno1; 10-21-2020 at 09:40 PM.
 
Old 10-22-2020, 02:04 AM   #5
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 15,990

Rep: Reputation: 5293Reputation: 5293Reputation: 5293Reputation: 5293Reputation: 5293Reputation: 5293Reputation: 5293Reputation: 5293Reputation: 5293Reputation: 5293Reputation: 5293
I would check the other files in that directory and copy the permissions (from a working one).
 
Old 10-22-2020, 04:30 AM   #6
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 16,858
Blog Entries: 10

Rep: Reputation: 5013Reputation: 5013Reputation: 5013Reputation: 5013Reputation: 5013Reputation: 5013Reputation: 5013Reputation: 5013Reputation: 5013Reputation: 5013Reputation: 5013
Does the permission problem apply to 7zr.1.gz only, or to all 7z*gz files in that directory, or possibly to even more files?
How did you originally install 7z?
Maybe this problem is distro-specific. A search for Peach OSI TW 16.04 pulls up web.archive pages mostly...
 
  


Reply

Tags
xfce4


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
[SOLVED] 'sudo chown root file.txt' is inconsistent in leading to a "permission denied" output charlemagne-is-my-son Linux - Newbie 1 11-09-2014 09:47 AM
LXer: The Ultimate Sudo FAQ To Sudo Or Not To Sudo? LXer Syndicated Linux News 13 04-13-2013 02:36 AM
cp: cannot stat: Permission denied, even though file is 644? grayFalcon Linux - Newbie 3 10-05-2009 03:40 AM
can't execute c++ binaries, "permission denied"... even though permission is 777 SerfurJ Programming 14 02-20-2009 05:50 AM
why "permission denied" though chmod 666? baosheng Linux - Networking 12 10-11-2005 12:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

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

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