Disable shared /home folders
-
- Posts: 274
- Joined: Thu Jan 26, 2012 7:56 am
Disable shared /home folders
I have posted something about this before but confusion in the office has facilitated the need for a solution. We have our shares on a large hard drive and the Fedora/Amahi on a small drive. Shared /home/[user] folders are a problem. Users who put files in their home share are filling up that hard drive. I want to turn on home shares. I can comment out the [homes] section of smb.conf but Amahi overwrites it with any changes to shares. Is there something I can change in Amahi to stop the overwrite or make the overwrite comment out that section?
Re: Disable shared /home folders
Not that I am aware. That would need to be a feature request.
One thing to keep in mind is user shares are a default of Linux, not Amahi. Using Samba just exposes them via Amahi.
If you can find a Samba config option to make them unwrittable or hidden, you could add the user folder to the Shares page and put that option in teh Other Parameters field. Then Amahi will automatically write that to the file.
What about applying a quota to the shares or look for a solution where you can lock them down. I am sure there is something on the internet for this scenario. Webmin might even provide a solution.
One thing to keep in mind is user shares are a default of Linux, not Amahi. Using Samba just exposes them via Amahi.
If you can find a Samba config option to make them unwrittable or hidden, you could add the user folder to the Shares page and put that option in teh Other Parameters field. Then Amahi will automatically write that to the file.
What about applying a quota to the shares or look for a solution where you can lock them down. I am sure there is something on the internet for this scenario. Webmin might even provide a solution.
ßîgƒσστ65
Applications Manager
My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2
Applications Manager
My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2
-
- Posts: 274
- Joined: Thu Jan 26, 2012 7:56 am
Re: Disable shared /home folders
Do you know which part of Amahi writes the Linux smb.conf file? I would like to investigate it further.
Re: Disable shared /home folders
No it is in the code. You could check out the ruby scripts in /var/hda directory. Not sure exactly where they are located, but should be there somewhere. Might be a template that it writes that can be modified.
ßîgƒσστ65
Applications Manager
My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2
Applications Manager
My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2
-
- Posts: 274
- Joined: Thu Jan 26, 2012 7:56 am
Re: Disable shared /home folders
Did some looking and did not see anything that stood out.
I did find a workaround though:
viewtopic.php?f=4&t=783
At the bottom of the posting there is the trick to create a "homes" share and then disable access for everyone. Users will be able to see the share but cannot access their user home folder via samba. It works.
I did find a workaround though:
viewtopic.php?f=4&t=783
At the bottom of the posting there is the trick to create a "homes" share and then disable access for everyone. Users will be able to see the share but cannot access their user home folder via samba. It works.
Re: Disable shared /home folders
Oh yea, did not think about that. It should work for what you need. When it says visible, I would think making it not visible would apply to the share as well as the files.
There may be an option to hide a share that can be used too. I will have to do some research.
EDIT: When I added my home drive as a share and changed the path, it was not visible. It may be that Samba did not restart before you checked.
There may be an option to hide a share that can be used too. I will have to do some research.
EDIT: When I added my home drive as a share and changed the path, it was not visible. It may be that Samba did not restart before you checked.
ßîgƒσστ65
Applications Manager
My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2
Applications Manager
My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2
Who is online
Users browsing this forum: No registered users and 1 guest