Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 12-23-2002, 10:51 AM   #1
LQ Newbie
Registered: Apr 2002
Posts: 26

Rep: Reputation: 15
new file permissions

have a directory structure that is tied to a group called eci. Any new file created has the eci group. We have an automated process that ftp's data to the server and then our application then reads the files and renames them.

The problem I'm having is the file comes in with the permissions rw r r . I need to to come in with rw rw r so the app can rename the file. My umask is 022 and I don't see this being set in my /dev/profile.

How can I set this so any new files have the proper permissions.

I would really like everything to be rwx rwx rwx as it seems our vendor is always having us do this to all files to get the thing to run correctly. Might as well make that the default.


Old 12-23-2002, 11:28 AM   #2
Registered: Jul 2002
Location: san francisco
Distribution: freebsd
Posts: 102

Rep: Reputation: 17
The reason that you don't see it in your /dev/profile[sic] is that the default value for umask is 022. To set every file's permission to 777 upon creation, put this in your ~/.profile, or wherever you deem it appropriate:

umask 0

(it's difficult to tell whether you actually meant /etc/profile and just typed it in wrong or whether you actually looked in a file named /dev/profile which I don't know WTF that would be, but you want to put the 'umask 0' command in one of your shell startup files.)

Last edited by leed_25; 12-23-2002 at 11:34 AM.
Old 12-23-2002, 11:43 AM   #3
LQ Newbie
Registered: Apr 2002
Posts: 26

Original Poster
Rep: Reputation: 15


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
file permissions OK, but command permissions? stabu Linux - General 2 10-05-2005 01:00 PM
locking a usage policy file/ftp file permissions gbow Linux - Newbie 0 02-16-2004 06:35 AM
CVS - file permissions and file ownership Osten Linux - Software 3 01-18-2004 05:08 PM
file permissions and file owner won't change Nadim Slackware 5 11-29-2003 07:03 PM
Changing file permissions on a SAMBA file share apenney Linux - Software 0 02-11-2002 05:42 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:49 AM.

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