| Author |
Message |
|
|
Post subject: setting umask
Posted: Jun 11, 2008 - 05:17 PM
|
|

Joined: Jan 07, 2008
Posts: 298
Status: Offline
|
|
I would like to change the default umask for users to 077. This can be done in users' .bash-profile and /etc/login.defs but in these files it is suggested that libpam-umask is used instead.
Problem:
LANG=C LC_ALL=C apt-get install libpam-umask
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
cups-common cupsys-common dcoprss kappfinder kate kcontrol kdebase-data kdebase-kio-plugins kdenetwork-kfile-plugins kdepasswd kdeprint kdict kdnssd kfind kget kicker klipper
kmenuedit knewsticker konsole kopete kpager kpersonalizer kpf ksmserver ksplash ksysguard ksysguardd ktip kwin libcups2 libcupsys2 libkonq4 sidux-vdr-client-data
Suggested packages:
mtools efax hylafax-client mgetty-fax avahi-autoipd zeroconf gnomemeeting
Recommended packages:
avahi-daemon
The following packages will be REMOVED:
adduser at audacious audacious-plugins beagle bluez-utils cinelerra citadel-common citadel-mta citadel-server configure-cups configure-dsl cron cryptsetup cups-pdf cupsys cupsys-bsd
cupsys-client cupsys-driver-gutenprint dbus dbus-x11 digikam dirmngr e2fsprogs flashplugin-nonfree foomatic-db-hpijs fuse-utils gparted gprsconnect hal hpijs hpijs-ppds hplip
hplip-gui initscripts inkscape jfsutils kamera kde-core kdeaddons kdeartwork kdebase kdebase-bin kdebase-runtime kdebase-runtime-bin-kde4 kdebluetooth kdegraphics kdelibs-bin
kdelibs5 kdenetwork kdepim kdepimlibs5 kdesktop kdessh kdm kdmtheme kerry kipi-plugins kleopatra konq-plugins konqueror konqueror-nsplugins kooka kpowersave kppp kscreensaver libapr1
libaprutil1 libbonoboui2-0 libgnome-vfs2.0-cil libgnome2-0 libgnome2.0-cil libgnomeui-0 libgnomevfs2-0 libgphoto2-2 libkdeedu4 libkdegames4 libkscan1 libpam-modules
libpanel-applet2-0 libparted1.7-1 libsane libsvn-perl libsvn1 libuuid1 libwine-print libxineliboutput-sxfe login mlocate modemlink mount mpd nspluginwrapper ntfsprogs openssh-client
openssh-server parley passwd powersaved ppp ppp-scripts pybliographer python-gnome2 reiserfsprogs samba-common sane sane-utils sidux-art-kde sidux-art-kde-erebos sidux-art-kde-nyx
sidux-art-kdm-erebos sidux-vdr sidux-vdr-client sidux-vdr-server sidux-vdr-server-data smbclient smbfs snort snort-common snort-rules-default sshfs sshstart ssl-cert strigi-applet
strigi-client strigi-daemon subversion sudo svn-buildpackage sysvinit tagua testdisk util-linux vdr vdr-gui vdr-plugin-channelscan vdr-plugin-epgsearch vdr-plugin-live
vdr-plugin-nordlichtsepg vdr-plugin-osdteletext vdr-plugin-reelchannelscan vdr-plugin-text2skin vdr-plugin-tvonscreen vdr-plugin-xineliboutput virtualbox-ose wengophone wine
wpasupplicant xfsprogs xsane
The following NEW packages will be installed:
cups-common libcups2 libpam-umask sidux-vdr-client-data
The following packages will be upgraded:
cupsys-common dcoprss kappfinder kate kcontrol kdebase-data kdebase-kio-plugins kdenetwork-kfile-plugins kdepasswd kdeprint kdict kdnssd kfind kget kicker klipper kmenuedit
knewsticker konsole kopete kpager kpersonalizer kpf ksmserver ksplash ksysguard ksysguardd ktip kwin libcupsys2 libkonq4
WARNING: The following essential packages will be removed.
This should NOT be done unless you know exactly what you are doing!
e2fsprogs libuuid1 (due to e2fsprogs) login libpam-modules (due to login) mount sysvinit initscripts (due to sysvinit) util-linux
31 upgraded, 4 newly installed, 150 to remove and 135 not upgraded.
Need to get 36.4MB of archives.
After this operation, 415MB disk space will be freed.
You are about to do something potentially harmful.
To continue type in the phrase 'Yes, do as I say!'
It seems to conflict with login or something. |
|
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Aug 15, 2008 - 12:19 PM
|
|

Joined: Apr 15, 2008
Posts: 129
Location: Australia
Status: Offline
|
|
I realise this is an old post
why not try to set it in /etc/profile
change the default
umask 022
to your preference.
Be aware that root can always read write and execute anything
good luck |
|
|
| |
|
|
|
 |
|
|
|
|