LinuxQuestions.org
Review your favorite Linux distribution.
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, 10: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, 11:40 AM   #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, 05: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, 05: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
Default directory and file permissions kodon Slackware 12 02-13-2020 01:49 PM
Restore all default file permissions pauliehaha Linux - General 4 05-25-2011 11:56 PM
Change default file permissions bmorel Linux - Newbie 4 05-08-2005 07:06 PM
umask and default file create permissions Rgamboa Linux - Newbie 5 05-20-2003 11:03 AM
Samba default File Permissions Nelleh Linux - Networking 6 06-06-2002 08:09 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:28 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
Open Source Consulting | Domain Registration