LinuxQuestions.org
Visit Jeremy's Blog.
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 08-03-2013, 07:31 AM   #1
NotAComputerGuy
Member
 
Registered: Jun 2012
Distribution: Linux Mint - Debian Edition
Posts: 349

Rep: Reputation: 13
Broken Users/Groups and File Permissions


Hi,

I've tried to create a new system user called deluge, and tried to create a new group called deluge and add my user (pi) to that group. I then tried to ensure that the folder 'deluge' could be read by members of the group deluge. (Is this confusing enough yet?)

Anyway, in doing so, my folder now looks like this:
Code:
ls -l deluge
ls: cannot access deluge/session.state: Permission denied
ls: cannot access deluge/gtkui.conf: Permission denied
ls: cannot access deluge/deluged.log: Permission denied
ls: cannot access deluge/plugins: Permission denied
ls: cannot access deluge/dht.state: Permission denied
ls: cannot access deluge/torrentview.state: Permission denied
ls: cannot access deluge/deluged.pid: Permission denied
ls: cannot access deluge/web_plugin.conf~: Permission denied
ls: cannot access deluge/core.conf: Permission denied
ls: cannot access deluge/web.conf~: Permission denied
ls: cannot access deluge/scheduler.conf: Permission denied
ls: cannot access deluge/gtkui.conf~: Permission denied
ls: cannot access deluge/auth: Permission denied
ls: cannot access deluge/auth.bak: Permission denied
ls: cannot access deluge/state: Permission denied
ls: cannot access deluge/core.conf~: Permission denied
ls: cannot access deluge/web.conf: Permission denied
ls: cannot access deluge/files_tab.state: Permission denied
ls: cannot access deluge/icons: Permission denied
ls: cannot access deluge/web_plugin.conf: Permission denied
ls: cannot access deluge/autoadd.conf: Permission denied
ls: cannot access deluge/peers_tab.state: Permission denied
ls: cannot access deluge/autoadd.conf~: Permission denied
ls: cannot access deluge/ipc: Permission denied
ls: cannot access deluge/ssl: Permission denied
ls: cannot access deluge/tabs.state: Permission denied
ls: cannot access deluge/yarss2.conf~: Permission denied
ls: cannot access deluge/ui.conf: Permission denied
ls: cannot access deluge/yarss2.conf: Permission denied
total 0
-????????? ? ? ? ?            ? auth
-????????? ? ? ? ?            ? auth.bak
-????????? ? ? ? ?            ? autoadd.conf
-????????? ? ? ? ?            ? autoadd.conf~
-????????? ? ? ? ?            ? core.conf
-????????? ? ? ? ?            ? core.conf~
-????????? ? ? ? ?            ? deluged.log
-????????? ? ? ? ?            ? deluged.pid
-????????? ? ? ? ?            ? dht.state
-????????? ? ? ? ?            ? files_tab.state
-????????? ? ? ? ?            ? gtkui.conf
-????????? ? ? ? ?            ? gtkui.conf~
d????????? ? ? ? ?            ? icons
d????????? ? ? ? ?            ? ipc
-????????? ? ? ? ?            ? peers_tab.state
d????????? ? ? ? ?            ? plugins
-????????? ? ? ? ?            ? scheduler.conf
-????????? ? ? ? ?            ? session.state
d????????? ? ? ? ?            ? ssl
d????????? ? ? ? ?            ? state
-????????? ? ? ? ?            ? tabs.state
-????????? ? ? ? ?            ? torrentview.state
-????????? ? ? ? ?            ? ui.conf
-????????? ? ? ? ?            ? web.conf
-????????? ? ? ? ?            ? web.conf~
-????????? ? ? ? ?            ? web_plugin.conf
-????????? ? ? ? ?            ? web_plugin.conf~
-????????? ? ? ? ?            ? yarss2.conf
-????????? ? ? ? ?            ? yarss2.conf~
As root, I can see this:
Code:
ls -l
total 120
-rw-rw-rw- 1 pi pi   187 Aug  3 11:08 auth
-rw-rw-rw- 1 pi pi    56 Jul 16 09:48 auth.bak
-rw-rw-rw- 1 pi pi    69 Dec  1  2012 autoadd.conf
-rw-rw-rw- 1 pi pi   191 Dec  1  2012 autoadd.conf~
-rw-rw-rw- 1 pi pi  2527 Aug  3 07:34 core.conf
-rw-rw-rw- 1 pi pi  2511 Jul 21 09:48 core.conf~
-rw-rw-rw- 1 pi pi     0 Aug  3 11:25 deluged.log
-rw-rw-rw- 1 pi pi    12 Aug  3 11:45 deluged.pid
-rw-rw-rw- 1 pi pi     0 Aug  3 11:45 dht.state
-rw-rw-rw- 1 pi pi   224 Jun 29 18:41 files_tab.state
-rw-rw-rw- 1 pi pi  1747 Jun 17 06:20 gtkui.conf
-rw-rw-rw- 1 pi pi  1778 Jun 12 17:18 gtkui.conf~
drw-rw-rw- 2 pi pi  4096 Jul 24 19:24 icons
drw-rw-rw- 2 pi pi  4096 Jul 11 18:18 ipc
-rw-rw-rw- 1 pi pi   286 Jun 29 18:41 peers_tab.state
drw-rw-rw- 2 pi pi  4096 Jul 16 09:42 plugins
-rw-rw-rw- 1 pi pi  2130 Nov 18  2012 scheduler.conf
-rw-rw-rw- 1 pi pi     0 Aug  3 07:31 session.state
drw-rw-rw- 2 pi pi  4096 Jul 16 09:42 ssl
drw-rw-rw- 2 pi pi 20480 Aug  3 11:52 state
-rw-rw-rw- 1 pi pi   109 Jun 29 18:41 tabs.state
-rw-rw-rw- 1 pi pi  2569 Feb  6 06:39 torrentview.state
-rw-rw-rw- 1 pi pi    56 Nov 18  2012 ui.conf
-rw-rw-rw- 1 pi pi   656 Aug  3 07:31 web.conf
-rw-rw-rw- 1 pi pi   656 Jul 31 19:45 web.conf~
-rw-rw-rw- 1 pi pi    85 Dec  1  2012 web_plugin.conf
-rw-rw-rw- 1 pi pi    85 Nov 18  2012 web_plugin.conf~
-rw-rw-rw- 1 pi pi   571 Mar 19 14:36 yarss2.conf
-rw-rw-rw- 1 pi pi   149 Mar 19 14:36 yarss2.conf~
Please help. I'm a complete computer newbie. I've no idea what I've done. I don't know if it's my user I've broken, my group or my folder.

What I am trying to do is have the user pi as a member of the group pi and deluge
Have the user deluge a member of deluge
Have the folder /home/pi/deluge readable and writeable by anyone in the group deluge

Thanks

Last edited by NotAComputerGuy; 08-03-2013 at 07:41 AM.
 
Old 08-03-2013, 07:52 AM   #2
NotAComputerGuy
Member
 
Registered: Jun 2012
Distribution: Linux Mint - Debian Edition
Posts: 349

Original Poster
Rep: Reputation: 13
It appears a user need execute permissions to cd into a directory and view it.
 
Old 08-03-2013, 07:53 AM   #3
konsolebox
Senior Member
 
Registered: Oct 2005
Distribution: Gentoo, Slackware, LFS
Posts: 2,248
Blog Entries: 8

Rep: Reputation: 235Reputation: 235Reputation: 235
Hi. Where do you run ls -l? Perhaps the permission of the directory itself where you run it needs to be checked as well?
 
Old 08-03-2013, 08:31 AM   #4
NotAComputerGuy
Member
 
Registered: Jun 2012
Distribution: Linux Mint - Debian Edition
Posts: 349

Original Poster
Rep: Reputation: 13
Quote:
Originally Posted by konsolebox View Post
Hi. Where do you run ls -l? Perhaps the permission of the directory itself where you run it needs to be checked as well?
I needed to add execute to the folder that I wanted to view. Thanks
 
  


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
LXer: Linux File Permissions, Groups, and Users LXer Syndicated Linux News 1 11-04-2010 04:37 AM
How to setup file permissions for multiple groups/users that use Windows AND Linux unassassinable Linux - Security 4 11-02-2010 08:00 PM
Groups..Users..Permissions.. kapilbajpai88 Linux - Newbie 8 02-23-2009 02:57 PM
users/groups and permissions.... muman Linux - Newbie 2 09-21-2004 11:20 AM
users, groups, and permissions mcd Linux - Newbie 3 05-26-2004 09:06 PM


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