Latest News: OOTP 13 Announced with Screenshots & Feature List! Pre-Order Now! - OOTP Baseball 12 Available! - iOOTP Baseball 2011 Available! - Title Bout Championship Boxing 2.5 released! - Inside the Park Baseball Patch 1.03 released, DEMO now available

Pre-Order OOTP 13, Save & Win! | OOTP 12 Off-Season Special, just $19.99!

Go Back   OOTP Developments Forums > Out of the Park Baseball 10 > OOTP 10 - Online Leagues > OOTP 10 Commissioner's Corner

OOTP 10 Commissioner's Corner Want to run an online league? Want to learn about the 'ins' and 'outs' of being a commish? This is the place!

Reply
 
LinkBack Thread Tools Display Modes
Old 10-15-2009, 10:05 PM   #1 (permalink)
Global Moderator
 
kq76's Avatar
 
Join Date: Nov 2002
Location: Vancouver
Posts: 7,523
Thanked 303x in 166 posts
File Permissions

What's the lowest we can set the file permissions (by that I'm talking about the read, write, execute permissions you set on files/folders on your ftp) for the folder that OOTP uses for exports and reports? I take it OOTP needs to be able to write, but does it need to execute too?

What about say a folder that Getch's or Statslab is in?

Some Links for those who might not have a clue what I'm talking about:
FTP and Understanding File Permissions
[all variants] File permissions, Write vs. Execute (RWX) - Ubuntu Forums
__________________
Useful Links: Manuals | Downloads | Newsletters | Knowledge Base | New Tech Support | Updated Forum Rules

Interactive Online League Directory - find or advertise a league today!
Canadian Baseball League - uses OOTP11, running steadily since April 2002
kq76 is offline   Reply With Quote
Old 10-15-2009, 10:57 PM   #2 (permalink)
Moderator
 
Join Date: Mar 2002
Location: Mass.
Posts: 1,963
Thanked 136x in 94 posts
Quote:
Originally Posted by kq76 View Post
What's the lowest we can set the file permissions (by that I'm talking about the read, write, execute permissions you set on files/folders on your ftp) for the folder that OOTP uses for exports and reports? I take it OOTP needs to be able to write, but does it need to execute too?

What about say a folder that Getch's or Statslab is in?

Some Links for those who might not have a clue what I'm talking about:
FTP and Understanding File Permissions
[all variants] File permissions, Write vs. Execute (RWX) - Ubuntu Forums

On most servers (I won't say all since I obviously don't know every single platform out there), a folder has to be set executable to be able to change directories into it. So for most folders you are really talking about read vs write privileges. If you use a seperate account for the league managers from the one you use for commissioner actions, you can give the league manager account read-only access for the download file directory (They never need to write to it), and then give them read and write access to the exports directory.
__________________
- Front Office Offseason League. (Fast Paced OOTP-X and OOTP11 leagues, sims one season every week)
Alan T is offline   Reply With Quote
Thank you for this post:
kq76 (10-17-2009)
Old 12-22-2009, 12:55 AM   #3 (permalink)
Global Moderator
 
kq76's Avatar
 
Join Date: Nov 2002
Location: Vancouver
Posts: 7,523
Thanked 303x in 166 posts
I just came across two pages that I think may have finally gotten it through to me:

Quote:
You can give read, write and execute permissions to the owner, groups and others separately.

So lets say you have a folder named ""Folder"" and a file named ""File"".

You want to: 1) allow anyone who has access to the system to be able to look at the file 2) allow any logged in user that is assigned to the group ""group"" to change the file 3) allow only the owner of the file to be able to delete the file.

drwxr-xr-x 2 user group 4096 May 28 13:05 Folder

-rw-rw-r-- 1 user group 1024 May 28 13:05 Folder/File

The reason this works is that:

The folder pernmissions allow all users to browse the content inside the folder, because they can read and cd into it. The ""rwx"" for the owner allows the owner to create and/or delete files within the folder. No-one else can create or delete files. This is because they cannot ""write"" the directory file itself, which is a list of files in that particular folder.

The file is set to read access only for others, and read/write for anyone assigned to the group ""group"" and the owner. So this, in combination with the folder permissions, achieves the objective.
Difference between users and groups for folder permissions

and:

Quote:
Files

...

A small explanation needs to be made as to what read, write, and execute actually mean. For files, a user who has read permission can see the contents of the file, a user who has write permission can write to it, and a user who has execute permission can execute the file. If the file to be executed is a script, the user must have read and execute permissions to execute the file. If the file is a binary, just the execute permission is required to execute the file.

Directories

The permissions on a directory are the same as those used by files: read, write, and execute. The actual permissions, however, mean different things. For a directory, read access provides the capability to list the names of the files in the directory but does not allow the other attributes to be seen (owner, group, size, and so on). Write access provides the capability to alter the directory contents. This means the user could create and delete files in the directory. Finally, the execute access enables the user to make the directory the current directory.
InformIT: Red Hat Linux 7 Unleashed > File and Directory Permissions

So I'm thinking the OOTP exports/reports folder can safely be set to 744 (read, write, execute for the user who uses the ftp account; only read for everyone else). We had it at 755 before, but if I'm understanding it correctly then everything (7) is necessary for the "user", but only reading (4) is necessary when not using the account. I tried to set the user to just 6 (r&w), but using my ftp client to test upload reset it to 7.
__________________
Useful Links: Manuals | Downloads | Newsletters | Knowledge Base | New Tech Support | Updated Forum Rules

Interactive Online League Directory - find or advertise a league today!
Canadian Baseball League - uses OOTP11, running steadily since April 2002
kq76 is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 04:48 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
Search Engine Friendly URLs by vBSEO 3.6.0
Copyright © 2009 Out of the Park Developments