quota: sudo jamais interactif
This commit is contained in:
parent
36613a1dc7
commit
deeafe477e
1 changed files with 1 additions and 1 deletions
|
@ -11,7 +11,7 @@ def getFloat(chose):
|
|||
return float(chose)
|
||||
|
||||
def getUserQuota(user):
|
||||
proc = subprocess.Popen(['sudo', 'quota', user], stdout=subprocess.PIPE)
|
||||
proc = subprocess.Popen(['sudo', '-n', 'quota', user], stdout=subprocess.PIPE)
|
||||
stdoutdata = proc.communicate()[0]
|
||||
string_result = stdoutdata.split("\n")
|
||||
quotas = []
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue