Solved

linux permission

Posted on 2011-02-22
6
424 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
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

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

Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
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…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
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.

695 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