LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 03-24-2008, 08:10 AM   #1
underlay
LQ Newbie
 
Registered: Oct 2004
Distribution: Mandrake
Posts: 10

Rep: Reputation: 0
Group permissions / FTP problem


I posted this in the networking area by mistake.

I help look after a FreeBSD web server that is hosted NTT Europe Online. Recently I have had problems with ftping certain accounts. I have set the permissions for the directory to Group1 for group rwx, and Owner1 for owner rwx and have a user (User1) who is a member of Group1.

When I look in /etc/group User1 is confirmed to be a member of Group1. When I then try to ftp to this area I get told access denied. If I change the other permissions to rwx I still get told the same thing.

When I run the "id" and "groups" commands for User1, they do not show me all the groups that User1 belongs to. This includes Group1 missing from their output.

If I change the group ownership from Group1 to User1 then I am able to ftp. I don't want to have to do this as other users will soon be setup to access this area an will have the same problems.

Firstly, what do the "id" and "groups" commands look at to determine the groups that a user belongs to and secondly any ideas on how I might be able to fix this so that multiple users can ftp into a directory with them as members of a group?

Regards,

Vicky
 
Old 03-24-2008, 08:55 AM   #2
Micro420
Senior Member
 
Registered: Aug 2003
Location: Berkeley, CA
Distribution: Mac OS X Leopard 10.6.2, Windows 2003 Server/Vista/7/XP/2000/NT/98, Ubuntux64, CentOS4.8/5.4
Posts: 2,986

Rep: Reputation: 45
did you log off and log back on as User1? Account changes don't take effect until you log off and log back in.

What FTP are you using? vsftp?
 
Old 03-24-2008, 09:23 AM   #3
underlay
LQ Newbie
 
Registered: Oct 2004
Distribution: Mandrake
Posts: 10

Original Poster
Rep: Reputation: 0
I have tried logging on using both windows based ftp programs (Dreamweaver and command line ftp) and linux based ftp programs (Kbear sftp and command line ftp).

The change to User1 was done through ssh and then a login afterwards with ftp. NTT's answer was to change the group name to User1 and couldn't understand why it wouldn't work with Group1 as the group name. They changed their servers recently and it was working ok before then. So far their support hasn't been any help which is why I am lookiing for help here.
 
Old 03-24-2008, 03:49 PM   #4
Micro420
Senior Member
 
Registered: Aug 2003
Location: Berkeley, CA
Distribution: Mac OS X Leopard 10.6.2, Windows 2003 Server/Vista/7/XP/2000/NT/98, Ubuntux64, CentOS4.8/5.4
Posts: 2,986

Rep: Reputation: 45
no idea what NTT is. This FTP server is managed by a remote host? How much access do you have on it? You might need to change the FTP configuration settings, or, directory permissions.
 
Old 03-24-2008, 04:04 PM   #5
underlay
LQ Newbie
 
Registered: Oct 2004
Distribution: Mandrake
Posts: 10

Original Poster
Rep: Reputation: 0
NTT Online are a hosting company. The server is a Virtual Private Server (VPS) that I rent from them. I have access as root user to that VPS area so can change most things. The strange thing is is that it all worked until NTT Online changed their own server and hence the IP address of our VPS.

I have been able to ftp other areas of the VPS so am not sure that changing the ftp configuration is the answer unless it is directory/user specific. I have also tried changing directory permissions to 777 but this made no difference.
 
Old 03-24-2008, 05:33 PM   #6
Micro420
Senior Member
 
Registered: Aug 2003
Location: Berkeley, CA
Distribution: Mac OS X Leopard 10.6.2, Windows 2003 Server/Vista/7/XP/2000/NT/98, Ubuntux64, CentOS4.8/5.4
Posts: 2,986

Rep: Reputation: 45
So what FTP program are they running (or did you install)? Vsftp? what distro is it running? Is SELinux enabled? Did you check the FTP configuration settings?

You seem to avoid my questions, so if you don't answer them this time then no more help for you. This thread is kind of going like this:

911:"Emergency. how can I help?"
You:"I've just been shot!"
911:"Where are you?"
You:"it was a gun."
911:"Okay, where can I send the ambulance to?"
You:"the shooter ran off 3rd St."
911:"I'll send the police that way, but where can I send the ambulace to help you."
You:"I'm hit in the leg."
911:*hangs up*
 
Old 03-25-2008, 03:15 PM   #7
underlay
LQ Newbie
 
Registered: Oct 2004
Distribution: Mandrake
Posts: 10

Original Poster
Rep: Reputation: 0
The server already had ftp installed when I first started using it. I don't know what version of ftp it is and am away at the moment so won't be able to find out until the weekend. The nix distro is FreeBSD (again can't confirm version). I will check the ftp settings when I get back and let you know.
 
  


Reply



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
Group permissions / ftp problem underlay Linux - Networking 0 03-24-2008 04:21 AM
Help with group permissions? paddyjoy Linux - Newbie 5 11-13-2006 03:40 AM
Group permissions flamingvan Linux - Newbie 4 10-18-2006 11:11 AM
Permissions problem - setting up dirs for root + group access ericcarlson Red Hat 1 03-26-2006 03:03 AM
group permissions problem ForumKid Linux - General 5 12-02-2002 12:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 07:36 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
Open Source Consulting | Domain Registration