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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
01-18-2010, 11:22 AM
|
#1
|
Senior Member
Registered: Jun 2009
Posts: 1,795
Rep:
|
vsftp - some users see files, some don't, but all users are in same group
When I have different people log into our ftp and browse to the same folder, some people see the files inside, some don't. all the user accounts are in the same group, which has permission to this folder. but the one user who can see the files is the owner.
how can i fix it so everyone in that group who's the owner of the folder can see the files?
|
|
|
01-18-2010, 11:52 AM
|
#2
|
Senior Member
Registered: Jan 2009
Location: vijayawada, India
Distribution: openSUSE 11.2, Ubuntu 9.0.4
Posts: 1,155
Rep:
|
Quote:
Originally Posted by rjo98
When I have different people log into our ftp and browse to the same folder, some people see the files inside, some don't. all the user accounts are in the same group, which has permission to this folder. but the one user who can see the files is the owner.
|
Did you mean, only root was able to see the files, others did n't
is n't it ?
use chmod
#chmod 755 -R <folder name>
|
|
|
01-18-2010, 11:54 AM
|
#3
|
Senior Member
Registered: Jun 2009
Posts: 1,795
Original Poster
Rep:
|
no, i meant the owner user of the folder could see them, but members of the group couldn't. but now, without me changing anything, group members can see the files now .. WEIRD
|
|
|
01-18-2010, 11:57 AM
|
#4
|
Senior Member
Registered: Jan 2009
Location: vijayawada, India
Distribution: openSUSE 11.2, Ubuntu 9.0.4
Posts: 1,155
Rep:
|
may be "umask" has changed.
checkout default umask =022 => no other can see the files except owner.
if it is changed every user can see.
change umask value to default . i.e. 022
|
|
|
01-18-2010, 11:58 AM
|
#5
|
Senior Member
Registered: Jun 2009
Posts: 1,795
Original Poster
Rep:
|
where do i find that at? nobody would have been changing settings on the server.
|
|
|
01-18-2010, 12:01 PM
|
#6
|
Senior Member
Registered: Jan 2009
Location: vijayawada, India
Distribution: openSUSE 11.2, Ubuntu 9.0.4
Posts: 1,155
Rep:
|
a person can change his umask value. may be some users modified their umask value's.
|
|
|
01-18-2010, 12:02 PM
|
#7
|
Senior Member
Registered: Jun 2009
Posts: 1,795
Original Poster
Rep:
|
how do i check it?
|
|
|
01-18-2010, 12:17 PM
|
#8
|
Senior Member
Registered: Jan 2009
Location: vijayawada, India
Distribution: openSUSE 11.2, Ubuntu 9.0.4
Posts: 1,155
Rep:
|
open your terminal
if you recive 022 , then permissions are RWXR-XR-X
you can modify by simple teminal command.
now create a file and check. only owner can see the files. others are restricted.
|
|
|
01-18-2010, 12:20 PM
|
#9
|
Senior Member
Registered: Jun 2009
Posts: 1,795
Original Poster
Rep:
|
none of the people who couldn't see the file temporarily have CLI access, so that can't be it. must just have been the server or ftp clients not behaving well together.
|
|
|
01-18-2010, 06:15 PM
|
#10
|
LQ Guru
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,420
|
You might want to
chmod g+s dir_in_question
which will ensure all files (subsequently) created in that dir are group owned by the dir's group.
http://en.wikipedia.org/wiki/Setuid
|
|
|
01-18-2010, 08:41 PM
|
#11
|
Senior Member
Registered: Jun 2009
Posts: 1,795
Original Poster
Rep:
|
Thanks Chris. I'll give it a shot. this was a real weird one.
|
|
|
All times are GMT -5. The time now is 12:32 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|