Linux Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOperating SystemsLinux Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
  #1  
Old April 15th, 2008, 11:55 AM
linuxChique's Avatar
linuxChique linuxChique is offline
watch for flying fingers
Dev Shed Novice (500 - 999 posts)
 
Join Date: Feb 2003
Location: Rocket City, USA
Posts: 724 linuxChique User rank is Captain (20000 - 30000 Reputation Level)linuxChique User rank is Captain (20000 - 30000 Reputation Level)linuxChique User rank is Captain (20000 - 30000 Reputation Level)linuxChique User rank is Captain (20000 - 30000 Reputation Level)linuxChique User rank is Captain (20000 - 30000 Reputation Level)linuxChique User rank is Captain (20000 - 30000 Reputation Level)linuxChique User rank is Captain (20000 - 30000 Reputation Level)linuxChique User rank is Captain (20000 - 30000 Reputation Level)linuxChique User rank is Captain (20000 - 30000 Reputation Level)  Folding Points: 31606 Folding Title: Starter FolderFolding Points: 31606 Folding Title: Starter Folder
Time spent in forums: 4 Days 6 h 3 m 47 sec
Reputation Power: 245
Send a message via ICQ to linuxChique Send a message via AIM to linuxChique Send a message via MSN to linuxChique Send a message via Yahoo to linuxChique Send a message via Google Talk to linuxChique
/etc/profile question

What do these two lines do?

Code:
umask 022

. /etc/environment
__________________

Reply With Quote
  #2  
Old April 15th, 2008, 01:33 PM
Ehlanna's Avatar
Ehlanna Ehlanna is offline
Not a clue what to put ...
Dev Shed Novice (500 - 999 posts)
 
Join Date: Jan 2006
Location: in front of this keyboard
Posts: 814 Ehlanna User rank is Captain (20000 - 30000 Reputation Level)Ehlanna User rank is Captain (20000 - 30000 Reputation Level)Ehlanna User rank is Captain (20000 - 30000 Reputation Level)Ehlanna User rank is Captain (20000 - 30000 Reputation Level)Ehlanna User rank is Captain (20000 - 30000 Reputation Level)Ehlanna User rank is Captain (20000 - 30000 Reputation Level)Ehlanna User rank is Captain (20000 - 30000 Reputation Level)Ehlanna User rank is Captain (20000 - 30000 Reputation Level)Ehlanna User rank is Captain (20000 - 30000 Reputation Level) 
Time spent in forums: 2 Weeks 2 Days 3 h 26 m 2 sec
Reputation Power: 243
The umask will control what permissions a file or directory will get when created - the mechanism is a bit bass-ackward but, in effect, barring no other influences a umask will have files created with rwxr-xr-x (755) permissions. There ARE other influences, which a man umask will reveal.

The . /etc/environment is sourcing the specified file, which (from the name) sounds like it will be setting up the users environment. Being sourced (the . is the command) means that anything set in that file will be retained (think of it like an include file) within the environment of the running process (the user shell) unlike if it had been executed, in which case any variables woudl only exist within the sub-shell process created.
__________________
According to Sod's Law, buttered toast lands butter side down, when dropped.
Per nature, cats always land on their feet.
So, what happens when you strap buttered toast to the back of a cat and throw it out a window?
.

Reply With Quote
Reply

Viewing: Dev Shed ForumsOperating SystemsLinux Help > /etc/profile question


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

 Free IT White Papers!
 
Accelerating Trading Partner Performance
One in five. That's how many partner transactions have at least one error. That is an amazing statistic, particularly given the extraordinary leaps in innovation across the global supply chain during the past two decades. Download this white paper to learn more.

 
Competing on Analytics
This Tech Analysis is designed to help identify characteristics shared by analytics competitors, and includes information about 32 organizations that have made a commitment to quantitative, fact-based analysis.

 
Cost Effective Scaling with Virtualization and Coyote Point Systems
An overview of the industry trend toward virtualization, how server consolidation has increased the importance of application uptime and the steps being taken to integrate load balancing technology with virtualized servers.

 
Five Checkpoints to Implementing IP Telephony
Implementation planning for IP PBX software and IP telephony has become vital as businesses replace discontinued legacy PBX phone systems. This informative whitepaper outlines five "checkpoints" for any implementation plan that will help make IP communications a successful proposition.

 
Hosted Email Security: Staying Ahead of New Threats
In the last two years, email has become a fierce battleground between the nefarious forces of spam and malware, and the heroes of messaging protection. The spam volumes increased alarmingly every month, bringing clever new forms of phishing and virus propagation attacks.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway