LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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 10-01-2004, 04:14 AM   #1
ryancoolest
Member
 
Registered: Jan 2004
Location: Pinas
Distribution: Mandrake
Posts: 152

Rep: Reputation: 30
Permission Denied


Hi Guys,

I had this problem my script create an folder (e.g. ryan) so the whe i use ls -l its like this.

drwxr-xr-x 3 www www 4096 Sep 7 18:01 ryan
drwxr-xr-x 2 ryan ryan 4096 Jun 14 19:13 tools

When I upload using FTP using different account like ryan its a permission denied.

My question is how can upload using ryan accont on this directory mention below.

drwxr-xr-x 3 www www 4096 Sep 7 18:01 ryan

thanks in advance.
 
Old 10-01-2004, 04:19 AM   #2
ryancoolest
Member
 
Registered: Jan 2004
Location: Pinas
Distribution: Mandrake
Posts: 152

Original Poster
Rep: Reputation: 30
Re: Permission Denied

Quote:
Originally posted by ryancoolest
Hi Guys,

I had this problem my script create an folder (e.g. ryan) so the whe i use ls -l its like this.

drwxr-xr-x 3 www www 4096 Sep 7 18:01 ryan
drwxr-xr-x 2 ryan ryan 4096 Jun 14 19:13 tools

When I upload using FTP using different account like ryan its a permission denied.

My question is how can upload using ryan accont on this directory mention below.

drwxr-xr-x 3 www www 4096 Sep 7 18:01 ryan

thanks in advance.
Owner and Group of ryan is www:www...

How can I upload via FTP using other account...(e.g. ryan)
 
Old 10-01-2004, 04:41 AM   #3
mrcheeks
Senior Member
 
Registered: Mar 2004
Location: far enough
Distribution: OS X 10.6.7
Posts: 1,690

Rep: Reputation: 51
put the other user in the same group as your ryan user.
chmod -R g+rw /location/ryan_homedir
 
Old 10-01-2004, 06:05 AM   #4
ryancoolest
Member
 
Registered: Jan 2004
Location: Pinas
Distribution: Mandrake
Posts: 152

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by mrcheeks
put the other user in the same group as your ryan user.
chmod -R g+rw /location/ryan_homedir
chmod -R g+rw /var/www/ryan ryan

or

chmod -R g+rw /var/www/ryan www
 
Old 10-01-2004, 10:11 AM   #5
DarkstarNL
LQ Newbie
 
Registered: Oct 2003
Location: The Netherlands
Distribution: Debian Sarge
Posts: 22

Rep: Reputation: 15
do a chmod -R 755 ryan:ryan /var/www/ryan that should work!!
 
Old 10-03-2004, 11:00 PM   #6
ryancoolest
Member
 
Registered: Jan 2004
Location: Pinas
Distribution: Mandrake
Posts: 152

Original Poster
Rep: Reputation: 30
Yeah but I should do it manually. well my script work this way... login my web and create a folder and upload some file on it. But others prefer an ftp client using there own username and pass, basically when they upload to the folder its permission denied. Because the owner and group of the folder that my script created is www:www if your upload using FTP client e.g. ryan, ryan:ryan is the permission.

My question how can make www and ryan have d same write and read permission. I tried to add this on the group both ryan and www

Quote:
ryan:x:518:www
www:x:502:ryan
still not working...
 
Old 10-03-2004, 11:07 PM   #7
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,276

Rep: Reputation: 370Reputation: 370Reputation: 370Reputation: 370
Did you give group write permission to the directory as mentioned above?
 
Old 10-03-2004, 11:12 PM   #8
ryancoolest
Member
 
Registered: Jan 2004
Location: Pinas
Distribution: Mandrake
Posts: 152

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by btmiller
Did you give group write permission to the directory as mentioned above?
Yep... I can upload using web based but if I use FTP client doens't work...
 
  


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
can't execute c++ binaries, "permission denied"... even though permission is 777 SerfurJ Programming 14 02-20-2009 05:50 AM
Permission Denied jamesvenning1 Linux - Newbie 4 06-05-2005 12:32 PM
Permission denied jagman026 Fedora 3 01-01-2005 04:45 PM
Permission Denied ptreves Linux - Newbie 7 12-16-2004 03:14 PM
Permission denied? jbhoo Linux From Scratch 1 04-27-2002 10:12 PM


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