Solved

linux permission

Posted on 2011-02-22
6
423 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

 
LVL 2

Author Comment

by:ywainberg
ID: 34951115
yes
0
 
LVL 11

Accepted Solution

by:
Pieter Jordaan earned 250 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

Enroll in May's Course of the Month

May’s Course of the Month is now available! Experts Exchange’s Premium Members and Team Accounts have access to a complimentary course each month as part of their membership—an extra way to increase training and boost professional development.

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…
The purpose of this article is to demonstrate how we can use conditional statements using Python.
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

732 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