LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices

Reply
 
Search this Thread
Old 03-10-2006, 07:05 PM   #1
cool9292
LQ Newbie
 
Registered: Mar 2006
Posts: 2

Rep: Reputation: 0
umask and default file permission


i am working on a web project that runs on freebsd.

currently all the file that created dynamically by the internet user (they upoad file through web browser) has a default file permission of 0644.

however, i need these files to have a default extension of 0755 in order to have my perl code working.

i changed the umask from 022 to 000 for both user and root and nothing happens. every time i re-logged back in and my umask number stays the same.

i am very confuse and don't know what to do.

thanks for anybody that can give me a hand.

thanks
 
Old 03-10-2006, 07:27 PM   #2
pljvaldez
Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Squeeze (x86)
Posts: 6,092

Rep: Reputation: 269Reputation: 269Reputation: 269
In linux, what you would do is to set the suid and guid bit on the folder they are uploading to. Been a long time since I did this but I think it's something like
Code:
chmod=0755 /path/to/directory
chmod +s /path/to/directory
 
Old 03-10-2006, 08:03 PM   #3
cool9292
LQ Newbie
 
Registered: Mar 2006
Posts: 2

Original Poster
Rep: Reputation: 0
currently this folder has permission of 0777.
the "." also have permission of 0777
and the ".." also have permission of 0777.

thanks pljvaldez
 
  


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
Umask and Linux Default Permissions Sandoomaphone Linux - Security 9 08-23-2004 05:48 PM
Where to set default file permissions (umask)? tredegar Linux - Newbie 14 01-27-2004 06:10 PM
vsftp umask and permission problem dagalicous Linux - Software 2 10-22-2003 09:55 PM
default file rights with umask MartinMiller Linux - General 6 10-22-2003 11:04 AM
umask and default file create permissions Rgamboa Linux - Newbie 5 05-20-2003 12:03 PM


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

Main Menu
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