Operating System - Linux
1832658 Members
3076 Online
110043 Solutions
New Discussion

smbcquotas - how do i use this

 
iinfi1
Super Advisor

smbcquotas - how do i use this

I went through the man pages but still i m unsure as to how this is used.

smbcquotas — Set or get QUOTAs of NTFS 5 shares

this is what the man page heading says. does this mean even if a share on my Linux system is samba shared, ie. visible to windows.

I have a Linux box where
linux-tu6y:~ # df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda2 25G 2.5G 21G 11% /
udev 439M 128K 439M 1% /dev
/dev/sda1 198M 14M 175M 7% /boot
/dev/sda4 3.0G 138M 2.7G 5% /var

and my samba share is on /home/oracleapps/statements
i need to give this to a user where in he will upload some bank statement (usually in kbs) and access it from Oracle EBS.
Is it possible to setquota on the samba share /home/oracleapps/statements which is //oracleapps/statements so that that samba share cannot have more than 10MB of data?
1 REPLY 1
iinfi1
Super Advisor

Re: smbcquotas - how do i use this

hi all i did it. i got help from novell forums

all i needed was a samba folder which can store around 20MB max of data and something which could be read from Oracle apps.

i created the virtual file system and followed the guide here
http://souptonuts.sourceforge.net/quota_tutorial.html

i created a dump file

dd if=/dev/zero of=/home/user/disk-img/disk.ext3 count=40960

formatted the dump using
mkfs.ext3 /home/user/disk-img/disk.ext3

mount -t ext3 -o rw,loop,usrquota,grpquota /home/user/disk-img/disk.ext3 /mnt

and thats it .... i didnt want to set quotas as the disk image itself is just 20MB


let me know your thoughts on this.
further i will cron a tar of that dump file somewhere so that the contents can be retrieved!!
i m yet to check whether oracle apps can read it ... i will have the tech consultant chk it tmrw