Visit Our UNIX and Linux User Community

Full Discussion: Umask, in Desktop(gnome)
Top Forums UNIX for Dummies Questions & Answers Umask, in Desktop(gnome) Post 302147614 by blesets on Tuesday 27th of November 2007 10:56:25 PM
Old 11-27-2007
Umask, in Desktop(gnome)

I want user, have umask 007, i just add in .bashrc and working, but our user using GDM for login, so I just add umask in /etc/profile. Is ther other way to put umask than in /etc/profile if using GDM?

How to make .bash_profile with our define(default with my setting).

Thank you.
 
Test Your Knowledge in Computers #623
Difficulty: Medium
The Python for loop is radically different from the C/C++ for loop.
True or False?

6 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Gnome desktop crash log

Hi All, When ever gnome desktop crashes, is it write errors to any log files? if yes please let me know log file name and path for the same. Thanks in advance for your inputs. Regards Bachegowda (0 Replies)
Discussion started by: bache_gowda
0 Replies

2. SuSE

SLED 10.2 Default gnome desktop generation

Hi! Does anyone know where to alter the default gnome setup that SLED 10.2 does? I work for a big company and we have a huge issue with SLED adding the "main-menu" gnome panel applet thingie.... /opt/gnome/lib/gnome-main-menu/main-menu Is there any way to exchange this process for ex the... (0 Replies)
Discussion started by: Esaia
0 Replies

3. Solaris

Persistent Security Banner on Gnome Desktop

I'm looking for options for displaying a persistent, security banner on a Solaris 10 workstation running JDS that would display at the top of each workspace for all users, have the option to change the color and the capability to add text to the banner. The company I work for has used JEDI for... (5 Replies)
Discussion started by: ArizonaTraveler
5 Replies

4. Shell Programming and Scripting

Backup & restore Gnome Desktop and all settings in Gnome

Hi I'm looking for scripts to backup & restore Gnome Desktop and all settings in Gnome. (0 Replies)
Discussion started by: ccc
0 Replies

5. UNIX Desktop Questions & Answers

GNOME Desktop - Setting missing from dconf-editor?

Hello All, Last night I installed OpenSuSE 12.1 (i586) on a HP Mini 110 laptop. And I selected GNOME as my Desktop during install... So I was trying to customize some things about the desktop, for example adding the Maximize/Minimize/Close options to the titlebar of a window. I did this... (2 Replies)
Discussion started by: mrm5102
2 Replies

6. Red Hat

Unable to get a Xterm or X app to appear under a Linux Gnome Desktop

I want to have a xterm or xapplication from a Solaris client to appear on my RHEL Server running GNOME desktop. It may sound easy at first but, I have done the basics and I be stuck. Have Tried: Linux - logged in as root, open a Terminal and did a echo $DISPLAY and it reports back :0.0 I... (7 Replies)
Discussion started by: mrmurdock
7 Replies
UMASK(3)								 1								  UMASK(3)

umask - Changes the current umask

SYNOPSIS
int umask ([int $mask]) DESCRIPTION
umask(3) sets PHP's umask to $mask & 0777 and returns the old umask. When PHP is being used as a server module, the umask is restored when each request is finished. PARAMETERS
o $mask - The new umask. RETURN VALUES
umask(3) without arguments simply returns the current umask otherwise the old umask is returned. EXAMPLES
Example #1 umask(3) example <?php $old = umask(0); chmod("/path/some_dir/some_file.txt", 0755); umask($old); // Checking if ($old != umask()) { die('An error occurred while changing back the umask'); } ?> NOTES
Note Avoid using this function in multithreaded webservers. It is better to change the file permissions with chmod(3) after creating the file. Using umask(3) can lead to unexpected behavior of concurrently running scripts and the webserver itself because they all use the same umask. PHP Documentation Group UMASK(3)

Featured Tech Videos

All times are GMT -4. The time now is 02:12 AM.
Unix & Linux Forums Content Copyright 1993-2020. All Rights Reserved.
Privacy Policy