LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 02-01-2016, 03:34 PM   #1
xusword
LQ Newbie
 
Registered: Aug 2008
Posts: 7

Rep: Reputation: 0
I own the directory but why do I have no access to it


Hi

I have installed an application as root in location /usr/local/share/app1/
After installation I realized my user user1 has no access to it. So I created a group myGroup and add user1 to it.
Then I change the directory's owner to myGroup/user1

Right now when I do ls I am seeing

sudo ls -la /usr/local/share

...
drwxr-xr-x 3 user1 myGroup 4096 Jan 29 16:34 app1
...

Every single file in the app folder seem to be owned by myGroup/user1 as well. However, if I just ls as user1 I am seeing

ls -la /usr/local/share/app1

ls: cannot access /usr/local/share/app1: Permission denied

Why is this? Anyone has some idea?

thanks
 
Old 02-01-2016, 03:52 PM   #2
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,258

Rep: Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947
What are the permissions on /usr/local/share?
 
Old 02-01-2016, 03:56 PM   #3
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: CentOS
Posts: 2,957

Rep: Reputation: 1267Reputation: 1267Reputation: 1267Reputation: 1267Reputation: 1267Reputation: 1267Reputation: 1267Reputation: 1267Reputation: 1267
Does that user have execute permission (at least) in all of the parent directories?

(Time lag -- sorry)

Last edited by rknichols; 02-01-2016 at 03:58 PM. Reason: Echo of another post
 
1 members found this post helpful.
Old 02-01-2016, 04:11 PM   #4
xusword
LQ Newbie
 
Registered: Aug 2008
Posts: 7

Original Poster
Rep: Reputation: 0
thanks!

the user don't have permission to local and share. That seems to be the problem. Fixed
 
Old 02-01-2016, 04:44 PM   #5
frenzygeek
LQ Newbie
 
Registered: Jan 2016
Posts: 3

Rep: Reputation: Disabled
deleted

Last edited by frenzygeek; 02-01-2016 at 10:44 PM.
 
  


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
[SOLVED] Directory access battles Linux - Newbie 7 05-04-2014 05:11 PM
Access to Directory mah454 Linux - General 3 12-01-2012 06:20 AM
[SOLVED] access directory outside of home directory? runinguy Linux - Newbie 7 04-16-2010 02:13 AM
How to access the nodes under the /dev directory to access the device? Nishant Desai Programming 2 11-18-2006 05:09 PM
Samba access by Windows users locking out directory access with Konqueror harry_fine SUSE / openSUSE 1 12-18-2004 06:33 AM


All times are GMT -5. The time now is 03:19 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