LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 12-28-2018, 12:32 PM   #1
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
setting up a guest account, nopasswd, and quota


I go tas far as creating a user with passwd, for starters, then fstab adding usrquota, and the file in /home

then when I got to check it, I got this message
Code:
$ sudo quotacheck -vgum -F ext4  /home 
quotacheck: Unknown quota format: ext4
Supported formats are:
  vfsold - original quota format
  vfsv0 - standard quota format
  vfsv1 - quota format with 64-bit limits
  rpc - use RPC calls
  xfs - XFS quota format
so quota user size homes can only be restricted by them formats and not ext4????

and how to do this for good mesure.



http://www.yolinux.com/TUTORIALS/Lin...ialQuotas.html
 
Old 12-28-2018, 12:50 PM   #2
dc.901
Senior Member
 
Registered: Aug 2018
Location: Atlanta, GA - USA
Distribution: CentOS/RHEL, openSuSE/SLES, Ubuntu
Posts: 1,005

Rep: Reputation: 370Reputation: 370Reputation: 370Reputation: 370
Have you tried without "-F", so:

Code:
sudo quotacheck -vaug /file_system
Reference: https://access.redhat.com/documentat...-keep-accurate

Last edited by dc.901; 12-28-2018 at 12:50 PM. Reason: added reference link
 
Old 12-28-2018, 01:25 PM   #3
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Original Poster
Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
Quote:
Originally Posted by dc.901 View Post
Have you tried without "-F", so:

Code:
sudo quotacheck -vaug /file_system
Reference: https://access.redhat.com/documentat...-keep-accurate

this is VOID Linux and not Red Hat but that is all I could find everything else pointed back to that reference, how to.


without the -F it says it has no idea of file type

app name is 'quota'
Code:
$  sudo quotacheck -vgum   /home 
quotacheck: Cannot guess format from filename on /dev/sda2. Please specify format on commandline.
quotacheck: Cannot find filesystem to check or filesystem not mounted with quota option.



userx@VoiDED.org:~
$  sudo quotacheck -vaug  /home 
Bad number of arguments.
Utility for checking and repairing quota files.
quotacheck [-gucbfinvdmMR] [-F <quota-format>] filesystem|-a

-u, --user                check user files
-g, --group               check group files
-c, --create-files        create new quota files
-b, --backup              create backups of old quota files
-f, --force               force check even if quotas are enabled
-i, --interactive         interactive mode
-n, --use-first-dquot     use the first copy of duplicated structure
-v, --verbose             print more information
-d, --debug               print even more messages
-m, --no-remount          do not remount filesystem read-only
-M, --try-remount         try remounting filesystem read-only,
                          continue even if it fails
-R, --exclude-root        exclude root when checking all filesystems
-F, --format=formatname   check quota files of specific format
-a, --all                 check all filesystems
-h, --help                display this message and exit
-V, --version             display version information and exit

Bugs to jack@suse.cz
fstab
Code:
$ cat /etc/fstab
UUID=16813c62-7cf0-4bd8-9ae4-cf23da361484 / ext4 defaults 0 1
UUID=1312898c-92a0-4a23-94d4-7ccb3b64dc29 /home ext4 defaults,usrquota,grpquota 0 2

/dev/sda3 /media/data1  ntfs-3g defaults 0 2

tmpfs /tmp tmpfs defaults,nosuid,nodev 0 0
files in home
Code:
 $ ls -l  /home
total 24
-rw-------  1 root  root      0 Dec 28 12:14 aquota.user
drwx--x--x  5 guest users  4096 Dec 28 12:10 guest
drwx------  2 root  root  16384 Dec 27 11:00 lost+found
-rw-------  1 root  root      0 Dec 28 12:21 quota.user
drwx------ 24 userx userx  4096 Dec 28 12:23 userx

Last edited by BW-userx; 12-28-2018 at 01:31 PM.
 
Old 12-28-2018, 01:50 PM   #4
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Original Poster
Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
I just found this using a different search pattern

https://wiki.archlinux.org/index.php/disk_quota

now to see about setting the actual limits on guest.

here is another one in case someone checks this out
http://elinuxbook.com/managing-disk-usage-with-quota/

Last edited by BW-userx; 12-28-2018 at 02:05 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] How can I use sudo without a tty and NOPASSWD enabled? cgeekwannabe Linux - Security 4 07-26-2012 04:47 PM
Guest to Host message passing - guest's memory usage statistics & guest's IP address Prince_Pangeni Linux - Virtualization and Cloud 2 03-03-2012 03:06 AM
gdm nopasswd login: impossible to set DE, language and layout savgur Linux - Desktop 1 10-02-2010 04:50 AM
SSH nopasswd login UltraSoul Solaris / OpenSolaris 3 06-20-2006 12:13 PM
is it legitimate and allowed and can be done to make another user account set uid and gid to null 0 to make another root account with different name and possibly not damage the debian system creating and using that new account BenJoBoy Linux - Newbie 12 01-29-2006 10:02 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 12:07 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration