LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices



Reply
 
Search this Thread
Old 04-09-2004, 11:46 AM   #1
Thermodynamic
Member
 
Registered: Apr 2003
Posts: 63

Rep: Reputation: 15
Is it possible to create default file permissions?


Hello! I use windows emulation so I can use Dreamweaver and graphics apps for some webpage design. Unfortunately, when I save them, Linux creates permissions that, when uploaded to the web server, make them unaccessible to everybody.

I've been manually changing files using chmod 744 filename.ext but I'd like to eliminate this step if possible.

Can this be done?

Thx much!
 
Old 04-09-2004, 12:40 PM   #2
spurious
Member
 
Registered: Apr 2003
Location: Vancouver, BC
Distribution: Slackware, Ubuntu
Posts: 558

Rep: Reputation: 31
Depending on your distro, check your /etc/profile or ~/.bashrc or ~/.bash_profile for your umask setting. I've never changed the default, and I'm not an expert at the umask and mode settings, so I can't think offhand what the umask setting would be to create mode 744 files by default.

The default umask=022 creates files with mode 644 (ie. files are 666 by default, subtract the umask, and you have 644).

However, you probably shouldn't change the settings. The inconvenience you experience is actually a security feature. You should probably just create your files in a given directory (eg /webfiles), then recursively chmod them all ie. chmod -R 744 /webfiles
 
Old 04-09-2004, 06:02 PM   #3
Thermodynamic
Member
 
Registered: Apr 2003
Posts: 63

Original Poster
Rep: Reputation: 15
Thanks!! For instructions, advice, and links! I hadn't thought of the access as a security feature (one 'duh' to me...), at least from the perspective of if a hacker broke into my system via the internet...
 
Old 04-09-2004, 06:28 PM   #4
spurious
Member
 
Registered: Apr 2003
Location: Vancouver, BC
Distribution: Slackware, Ubuntu
Posts: 558

Rep: Reputation: 31
You should also read up on these additional threads:

Permissions problem

setting umask that affects all programs
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Restore all default file permissions pauliehaha Linux - General 4 05-26-2011 12:56 AM
Change default file permissions bmorel Linux - Newbie 4 05-08-2005 08:06 PM
Default directory and file permissions kodon Slackware 10 08-08-2004 09:27 AM
umask and default file create permissions Rgamboa Linux - Newbie 5 05-20-2003 12:03 PM
Samba default File Permissions Nelleh Linux - Networking 6 06-06-2002 09:09 AM


All times are GMT -5. The time now is 02:25 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration