samba - users can see system files etc when accesing share
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
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.
samba - users can see system files etc when accesing share
I have sucessfully set up samba networking/samba user/ and a single samba share on my suse 9.0 box.
Users are able to access the samba share from windows boxes (using no password/blank password) using the samba username. Problem is that when they connect, in addition to seeing the files stored in the samba share, user can also see a number of other directories and files that look like system items. I copied the dir listing here as it appears on the windows box after connecting to the share:
~~~~~~~~~~~~~~~
ftpshar on 10.2.1.241
~~~~~~~~~~~~~~~
Could you copy and paste the "smb.conf" file to here. Also before you do, goto the directory that SAMBA is sharing and issue "ls -la" and make sure those files are not in that directory. If they are, just make a whole new directory called "Data" or something similar in your "/home" partition. After that, update your "smb.conf" file to reflect the new changes to made and then restart your SAMBA daemons.
oh boy... just remembered something.... this directory also acts as a home directory for vsftpd and its user.... Im sure that is related to the problem...
background: I am trying to create a directory on my linux box that:
external users can copy file to/from via FTP,
then internal users can retrieve the files/copy via a windows drive letter mapping
ls -la revealed that the files are in fact in that directory... I didnt notice this earlier because they do not show up in any of the graphical file managers...
am I going about this the wrong way? any alternatives?
Im using vsftpd.... for security sake, it seems to require that you create a nonpriviledged user (cannot run as root) to handle ftp logins, and that user's home directory becomes the ftp repository. Im guessing that KDE stores items like a users desktop and gui settings (or are they aliases of some kind) as hidden files/dirs in the users home directory (can someone verify this?). Cosequently, when users access that dir thru samba, they can see the HIDDEN ITEMS in addition to the valid files uploaded via ftp.
I thought of creating a separate directory for smb, then creating a cronjob that copies any new files to the (other) directory (either direction)... but that would be a jimmy rig...
Perhaps I could remove all view rights to the system items for the samba user? Is this correct, and how would I do so?
Alternatively, could I delete all those files since the ftp user account will never log into the KDE window mgr?
Solution - I backed up my entire system, then simply deleted all unecessary system files in the folder... since the ftp service user account will (in theory) never log into KDE... everything is working fine - problem solved.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.