LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 03-09-2010, 05:56 AM   #1
johnh10000
Member
 
Registered: Nov 2008
Distribution: Ubuntu Lucid Lynx
Posts: 541

Rep: Reputation: 33
users and groups


now i thought i understood this, but apprently not

i have set my ftp dir and everything in it to be ftp:users with permissions set to 575.

add my self to the group

with a gpasswd -a johnh users

and add ftp to group

gpasswd -a ftp users

i can't write in the ftp directory why?
 
Old 03-09-2010, 06:48 AM   #2
smoker
Senior Member
 
Registered: Oct 2004
Distribution: Fedora Core 4, 12, 13, 14, 15, 17
Posts: 2,279

Rep: Reputation: 250Reputation: 250Reputation: 250
Set it to 775.

Last edited by smoker; 03-09-2010 at 06:50 AM.
 
Old 03-09-2010, 06:50 AM   #3
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653
Which ftp daemon are you using ? ... do you have write enabled in the ftp daemon config ?

eg.

vsftpd.conf -
Code:
# Uncomment this to enable any form of FTP write command.
write_enable=YES

cheers
 
Old 03-09-2010, 07:08 AM   #4
johnh10000
Member
 
Registered: Nov 2008
Distribution: Ubuntu Lucid Lynx
Posts: 541

Original Poster
Rep: Reputation: 33
Quote:
Originally Posted by smoker View Post
Set it to 775.
so the owner has to beable to write to it as well?
 
Old 03-09-2010, 07:14 AM   #5
johnh10000
Member
 
Registered: Nov 2008
Distribution: Ubuntu Lucid Lynx
Posts: 541

Original Poster
Rep: Reputation: 33
[QUOTE=kbp;3891442]Which ftp daemon are you using ? ... do you have write enabled in the ftp daemon config ?
[quote]
proftp-basic

[quote]
Code:
# Uncomment this to enable any form of FTP write command.
write_enable=YES
cheers/QUOTE]

yeah, i get that. my friend who has a user ftp account here, recons that ftp should be availble in his chroot jail. also he sends me stuff sometime, so I have fstabed incomming <i know, the scripts are written now!> so that way it goes everywhere hence fstab bind, and I need that incomming writable in ftp, my incomming dir, and in his.
 
Old 03-09-2010, 07:20 AM   #6
johnh10000
Member
 
Registered: Nov 2008
Distribution: Ubuntu Lucid Lynx
Posts: 541

Original Poster
Rep: Reputation: 33
Quote:
Originally Posted by johnh10000 View Post
so the owner has to beable to write to it as well?
did that still can't write to it

now we have /home/ftp 775 <ftp:users>

me being johnh but a member of users, so why can't i write to it? it don't make sense.

it gets worse, it's MY ACCOUNT thats screwed up, i logged on locally as my mate jono, and he can write everywhere <users> group is

Last edited by johnh10000; 03-09-2010 at 07:24 AM.
 
Old 03-09-2010, 07:37 AM   #7
smoker
Senior Member
 
Registered: Oct 2004
Distribution: Fedora Core 4, 12, 13, 14, 15, 17
Posts: 2,279

Rep: Reputation: 250Reputation: 250Reputation: 250
Are you using a group password or your own user password ?
Have you changed to the group ?
newgrp users

Last edited by smoker; 03-09-2010 at 07:40 AM.
 
Old 03-09-2010, 07:45 AM   #8
johnh10000
Member
 
Registered: Nov 2008
Distribution: Ubuntu Lucid Lynx
Posts: 541

Original Poster
Rep: Reputation: 33
Quote:
Originally Posted by smoker View Post
Are you using a group password or your own user password ?
Have you changed to the group ?
newgrp users
I have not set any group passwds. That was one of things I just thought of, so a quick chown -R johnh:users /home/johnh the result the same.

Annoying, but I can write incomming so can jono. he has a copy /home/ftp in chrooted home directory, and incomming. he can't write to ftp, and can to incomming. so achived the result i want. can't sus why its form and not me.

thanks anyway. happy times a foot off to get my new box, now quicker, so the darn ftp thing will be moving house later!!!
 
  


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
System Groups from Users and Groups measekite Linux - General 3 05-05-2009 09:22 PM
Users/Groups dhanabalanb Linux - General 3 07-21-2007 07:16 AM
users and groups twb2005 Red Hat 1 10-10-2005 01:47 PM
users and groups Red Squirrel Linux - Newbie 2 02-22-2004 07:37 PM
users and groups krfulton Linux - Security 1 01-05-2004 03:43 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

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