LinuxQuestions.org
Help answer threads with 0 replies.
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 01-17-2006, 11:10 AM   #1
rubella
Member
 
Registered: Sep 2005
Location: Europe
Distribution: debian sarge
Posts: 65

Rep: Reputation: 15
group permissions in a folder


i guess this one is a real noob-question, but in fact, i'm a noob.

ok, i have a directory, /var/www/site with default www-data user rights. I installed vsftp to upload files to this directory with the user ftpuser...

every file/dir in the directory /var/www/site has as user/group ftpuser... no problem, everything is readable... but not writable!

** So, i can give user/group ftpuser read/write rights to all uploaded items, but i don't know how.
** I can upload with user www-data, but i don't have an idea to fix this one... i only know i redirected my homefolder from /home/ftpuser to /var/www/site in the file /etc/passwd.
** Can i specify multiple groups with write-rights on one directory? I don't know how.

security is not a big issue, it's only for internal use, but a secure solution would be better. I've read 'linux in a nutshell' but the topic about permissions is really 'in a nutshell'. there are some other solutions on this forum, but i thought i found a new way... :-S

Someone an idea? would be great! thx!
 
Old 01-17-2006, 11:25 AM   #2
linmix
Senior Member
 
Registered: Jun 2004
Location: Spain
Distribution: FC5
Posts: 1,993
Blog Entries: 1

Rep: Reputation: 46
ls -l will give you full information on acces rights in the following fomat:
read, write, execute (for folders: go through) for Owner, Grouop and Others
for a file: -rwxr-x--- would mean owner has full rights, group cannot write, others xcan't do anything.
To change those rights, you use chmod (=>man chmod)
 
Old 01-17-2006, 04:27 PM   #3
rubella
Member
 
Registered: Sep 2005
Location: Europe
Distribution: debian sarge
Posts: 65

Original Poster
Rep: Reputation: 15
thx for reply... can i give 2 different groups rights on one dir? how? thx!
 
Old 01-17-2006, 11:51 PM   #4
linmix
Senior Member
 
Registered: Jun 2004
Location: Spain
Distribution: FC5
Posts: 1,993
Blog Entries: 1

Rep: Reputation: 46
Never done this, but I'd say you'd have to assign the directory to a third group and make group 1 and 2 members of goup 3.
 
Old 01-18-2006, 02:09 AM   #5
rubella
Member
 
Registered: Sep 2005
Location: Europe
Distribution: debian sarge
Posts: 65

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by linmix
Never done this, but I'd say you'd have to assign the directory to a third group and make group 1 and 2 members of goup 3.
ohh yes, sounds really logical... but my problem, how do i assign a dir to a group?

maybe better, i seem to have a lot of troubles with permissions, does someone knows a good tutorial or something else to read? thx!
 
Old 01-18-2006, 04:23 AM   #6
rubella
Member
 
Registered: Sep 2005
Location: Europe
Distribution: debian sarge
Posts: 65

Original Poster
Rep: Reputation: 15
to assign a user/group to a dir... 'chown user:group /name/of/dir'

thx guys/girls!
 
  


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
permissions difference between /home/..../folder and /root/folder darkleaf Linux - General 3 07-21-2005 05:23 PM
folder owner/group weird curos Slackware - Installation 1 07-18-2005 07:13 AM
samba : access denied for some user in same NT group on a folder mtrento Linux - Networking 0 06-27-2005 10:01 AM
group permissions based on folder perms grcunningham Linux - Networking 1 05-27-2005 04:50 AM
Group Permissions (m9.2) PaladinCowboy75 Mandriva 4 05-06-2004 08:20 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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