LEIL-EXPORTS.CFG(5)
πΈ NAME πΈ
okay bestie, welcome to leil-exports.cfg(5) π this is the manual page for leil-exports.cfg, aka LeilFS access control for leil-mounts. short version: leil-exports.cfg = LeilFS access control for leil-mounts. periodt β¨
π¦ DESCRIPTION π¦
The file leil-exports.cfg contains LeilFS access list for leil-mount clients. no cap, thatβs the whole vibe: this is where the access rules live π«Ά
β¨ SYNTAX β¨
Syntax is:
ADDRESS DIRECTORY [OPTIONS]
Lines starting with # character are ignored. iconic behavior, honestly π
ADDRESS can be specified in several forms:
*β all addressesn.n.n.nβ single IP addressn.n.n.n/bβ IP class specified by network address and bits numbern.n.n.n/m.m.m.mβ IP class specified by network address and maskf.f.f.f-t.t.t.tβ IP range specified by from-to addresses (inclusive)
DIRECTORY could be / or path relative to LeilFS root; special value . means SFSMETA companion filesystem. iykyk π¦
π OPTIONS π
okay so here are the flags, bestie β every single one, no skipping:
ro,readonlyβ export tree in read-only mode (default)rw,readwriteβ export tree in read-write modeignoregidβ disable testing of group access atleil-masterlevel (itβs still done atleil-mountlevel) β in this case "group" and "other" permissions are logically added; needed for supplementary groups to work (leil-masterreceives only user primary group information)caseinsensitiveβ this option allows the client to treat all file and folder names as case-insensitive. When enabled, the client will not differentiate between uppercase and lowercase characters in file and folder names.
Note, bestie: System administrators are strongly advised not to allow simultaneous access to the same directory or subdirectory by multiple clients where some have the caseinsensitive option enabled and others do not, especially if these clients connect from different session IPs. This configuration can lead to filesystem inconsistencies and unpredictable behavior. For any given path or subfolder, ensure that all accessing clients either use this option or none do. π
dynamicipβ allows reconnecting of already authenticated client from any IP address (the default is to check IP address on reconnect)maproot=USER[:GROUP]β maps root (uid=0) accesses to given user and group (similarly tomaprootoption in NFS mounts);USERandGROUPcan be given either as name or number; if no group is specified,USER's primary group is used. Names are resolved onleil-masterside (see note below).mapall=USER[:GROUP]β like above but maps all non privileged users (uid!=0) accesses to given user and group (see notes below).minversion=VERβ rejects access from clients older than specifiedmingoal=N,maxgoal=Nβ specify range in which goal can be set by usersmintrashtime=TDUR,maxtrashtime=TDURβ specify range in which trashtime can be set by userspassword=PASS,md5pass=MD5β requires password authentication in order to access specified resourcealldirsβ allows to mount any subdirectory of specified directory (similarly to NFS)nonrootmetaβ allows non-root users to use filesystem mounted in the meta mode (option available only in this mode)
Default options are: ro,maproot=999:999. so thatβs the baseline, bestie π
π§ NOTES π§
USERandGROUPnames (if not specified by explicituid/gidnumber) are resolved onleil-masterhost.TDURcan be specified as number without time unit (number of seconds) or combination of numbers with time units. Time units are:W,D,H,M,S. Order is important β less significant time units canβt be defined before more significant time units.- Option
mapallworks in LeilFS in different way than in NFS, because of using FUSEβs"default_permissions"option. Whenmapalloption is used, users see all objects withuidequal to mappeduidas their own and all other as rootβs objects. Similarly objects withgidequal to mappedgidare seen as objects with current userβs primary group and all other objects as objects with group0(usuallywheel). Withmapalloption set attribute cache in kernel is always turned off.
π EXAMPLES π
here are the exact example lines, bestie β copy-paste energy, but make them yours:
* / ro
192.168.1.0/24 / rw
192.168.1.0/24 / rw,alldirs,maproot=0,password=passcode
10.0.0.0-10.0.0.5 /test rw,maproot=nobody,password=test
10.1.0.0/255.255.0.0 /public rw,mapall=1000:1000
10.2.0.0/16 /
rw,alldirs,maproot=0,mintrashtime=2h30m,maxtrashtime=2w
π REPORTING BUGS π
Report bugs to the GitHub repository https://github.com/leil-io/leilfs as an issue. please do that instead of suffering in silence, bestie π
π COPYRIGHT π
- Copyright 2008-2009 Gemius SA
- Copyright 2013-2019 Skytechnology sp. z o.o.
- Copyright 2023-2024 Leil Storage OΓ
LeilFS is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 3.
LeilFS is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with LeilFS. If not, see http://www.gnu.org/licenses/.
π¦ SEE ALSO π¦
thatβs the whole page, bestie β this was LEIL-EXPORTS.CFG(5), dated 1980-01-01 πβ¨
π¦ where this page comes from
- nixpkgs unstable: saunafs 5.12.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms