Skip to content
Permalink
Browse files

Fix for issue #6 - cloudprint.conf details exposed to users

  • Loading branch information
simoncadman committed May 10, 2012
1 parent a87e4e7 commit 52410efc5de2160623fc04f37b11e8aee3d0ef3e
Showing with 4 additions and 1 deletion.
  1. +4 −1 setupcloudprint.py
@@ -1,6 +1,6 @@
#! /usr/bin/env python2.7

import sys, getpass, cups
import sys, os, grp, getpass, cups
from config import Config
from auth import Auth
from printer import Printer
@@ -34,6 +34,9 @@
configuration.set('Google', 'username', username)
configuration.set('Google', 'password', password)
configuration.save()
os.chmod('/etc/cloudprint.conf', 0640)
lpid = grp.getgrnam('lp').gr_gid
os.chown('/etc/cloudprint.conf', 0, lpid)
success = True


0 comments on commit 52410ef

Please sign in to comment.
You can’t perform that action at this time.