Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

linux permission

Posted on 2011-02-22
6
Medium Priority
?
427 Views
Last Modified: 2012-05-11
hi

i have installed an ftp server on my linux debian machine , i can connect to it remotely and i can upload/download  files with success

when i open the the same ftp folder in my windows machine i have access to the folder but when i open the files i get "access denied"

the strange thing is that if i go into my linux machine and put a file in that folder i can open it from windows but if i do the same operation from the ftp i get "access denied"  

maybe its a something i didn't configured right in the vsftp.conf file....
0
Comment
Question by:ywainberg
  • 3
  • 3
6 Comments
 
LVL 11

Expert Comment

by:Pieter Jordaan
ID: 34950652
Hi

You say that you can open the file from windows? Are you using an ftp client to connect to it?
It sounds like you are using samba and ftp.

Permissions on unix depend on the user account used, and the umask setting for it.
The user account used in your vsftp config must have full write permissions on that folder.

look at the umask settings here: http://vsftpd.beasts.org/vsftpd_conf.html

a umask of 002 will give all files created by that user, rwxrwxr-x permissions. so other users not in that group can only read it.

If you are using samba and vsftpd, make sure both use the same user account to access the file.
0
 
LVL 2

Author Comment

by:ywainberg
ID: 34950777
can you be more specific ?
0
 
LVL 11

Expert Comment

by:Pieter Jordaan
ID: 34951098
You didn't answer my question?

Are you using Samba to access the file from windows?
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
LVL 2

Author Comment

by:ywainberg
ID: 34951115
yes
0
 
LVL 11

Accepted Solution

by:
Pieter Jordaan earned 1000 total points
ID: 34951176
Just configure Samba to use the same user account as vsftp.

In your smb.conf file, add the following under the file share that shares the file.
There should be a heading like [Share Name]

        force user = yourftpuser
        force group = yourftpgroup

Then restart samba.

I can not really help you until you give me more information.
0
 
LVL 2

Author Comment

by:ywainberg
ID: 34951285
it worked like a charm

thanks!
0

Featured Post

Get your Disaster Recovery as a Service basics

Disaster Recovery as a Service is one go-to solution that revolutionizes DR planning. Implementing DRaaS could be an efficient process, easily accessible to non-DR experts. Learn about monitoring, testing, executing failovers and failbacks to ensure a "healthy" DR environment.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
Fine Tune your automatic Updates for Ubuntu / Debian
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses
Course of the Month20 days, 23 hours left to enroll

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question