diff options
-rw-r--r-- | layman/db.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/layman/db.py b/layman/db.py index 90cd87e..58b6b8d 100644 --- a/layman/db.py +++ b/layman/db.py @@ -267,7 +267,10 @@ class RemoteDB(Overlays): # Check for sufficient privileges if not os.access(mpath, os.W_OK): - OUT.warn('You do not have permission to update the cache') + OUT.warn('You do not have permission to update the cache.') + import getpass + if getpass.getuser() != 'root': + OUT.warn('Hint: You are not root.') return try: |