LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 03-09-2007, 09:09 AM   #1
arkaan
LQ Newbie
 
Registered: Mar 2007
Posts: 9

Rep: Reputation: 0
Permissions on a folder..


Hello folks.

My problem is that I have a shared (upload) folder, which others are able to connect to through Samba, my problem is that I need to execute "chmod -R 777 /path/to/dir/" to make it possible for others to upload...


I'm searching a way to chmod all files stored in /path/to/dir/ .. Because thing like they are right now, im forced to use "chmod -R 777" to change the permissions on the files which has been written to the share folder, since last time I used it...

I thought about making a cronjob, but I guess there's a more handy way.
 
Old 03-09-2007, 10:01 AM   #2
Linville79
Member
 
Registered: Nov 2006
Location: Indiana, U.S.A.
Distribution: Red Hat Enterprise Linux, Fedora, CentOS
Posts: 134

Rep: Reputation: 16
You can change the umask setting on the user accounts that are uploading the files so that it will upload them as 777 if that's the permissions that you want.

777 = Global Read, Write, Execute

Are you sure those are the permissions that you want to have? It shouldn't need to be that open just for upload(write) capability, but that's up to you.

I'm guessing that the files are uploading as 644, so you will need to set the umasks to "133" to get to 777 permissions.
 
Old 03-09-2007, 10:16 AM   #3
arkaan
LQ Newbie
 
Registered: Mar 2007
Posts: 9

Original Poster
Rep: Reputation: 0
Rep.

Hey.

That might be a good idea, the files are written by the shareaccount "share". How do I set the mask for the account?
 
Old 03-09-2007, 11:18 PM   #4
Linville79
Member
 
Registered: Nov 2006
Location: Indiana, U.S.A.
Distribution: Red Hat Enterprise Linux, Fedora, CentOS
Posts: 134

Rep: Reputation: 16
Use the command "umask" while logged in as that user to determine what their umask currently is.

Change it by editing the profile in /etc/profile.
 
  


Reply



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
folder permissions lpn1160 Linux - General 4 10-29-2006 08:46 AM
permissions difference between /home/..../folder and /root/folder darkleaf Linux - General 3 07-21-2005 05:23 PM
folder Permissions issinho Linux - Security 3 07-10-2005 02:35 PM
folder permissions Godsmacker777 Linux - Newbie 4 12-02-2004 10:26 PM
Folder permissions help Seventh Linux - Newbie 2 04-22-2004 05:56 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

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

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