Solved

linux permission

Posted on 2011-02-22
6
419 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
Comment Utility
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
Comment Utility
can you be more specific ?
0
 
LVL 11

Expert Comment

by:Pieter Jordaan
Comment Utility
You didn't answer my question?

Are you using Samba to access the file from windows?
0
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 
LVL 2

Author Comment

by:ywainberg
Comment Utility
yes
0
 
LVL 11

Accepted Solution

by:
Pieter Jordaan earned 250 total points
Comment Utility
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
Comment Utility
it worked like a charm

thanks!
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

rdate is a Linux command and the network time protocol for immediate date and time setup from another machine. The clocks are synchronized by entering rdate with the -s switch (command without switch just checks the time but does not set anything). …
Over the last ten+ years I have seen Linux configuration tools come and go. In the early days there was the tried-and-true, all-powerful linuxconf that many thought would remain the one and only Linux configuration tool until the end of times. Well,…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
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.

762 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

Need Help in Real-Time?

Connect with top rated Experts

7 Experts available now in Live!

Get 1:1 Help Now