Home | Webstore
Latest News: OOTP 27 Buy Now - FHM 12 Available - OOTP Go! 27 Available

Out of the Park Baseball 27 Buy Now!

  

Go Back   OOTP Developments Forums > Prior Versions of Our Games > Earlier versions of Out of the Park Baseball > Earlier versions of OOTP: Online Leagues

Reply
 
Thread Tools
Old 10-15-2009, 09:05 PM   #1
kq76
Global Moderator
 
kq76's Avatar
 
Join Date: Nov 2002
Posts: 12,036
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
kq76 is offline   Reply With Quote
Old 10-15-2009, 09:57 PM   #2
Alan T
All Star Starter
 
Join Date: Mar 2002
Location: Mass.
Posts: 1,963
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
Old 12-21-2009, 11:55 PM   #3
kq76
Global Moderator
 
kq76's Avatar
 
Join Date: Nov 2002
Posts: 12,036
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.
kq76 is offline   Reply With Quote
Reply

Bookmarks

Thread Tools

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

Forum Jump


All times are GMT -4. The time now is 10:47 AM.

 

Major League and Minor League Baseball trademarks and copyrights are used with permission of Major League Baseball. Visit MLB.com and MiLB.com.

Officially Licensed Product – MLB Players, Inc.

Out of the Park Baseball is a registered trademark of Out of the Park Developments GmbH & Co. KG

Google Play is a trademark of Google Inc.

Apple, iPhone, iPod touch and iPad are trademarks of Apple Inc., registered in the U.S. and other countries.

COPYRIGHT © 2023 OUT OF THE PARK DEVELOPMENTS. ALL RIGHTS RESERVED.

 

Powered by vBulletin® Version 3.8.10
Copyright ©2000 - 2026, vBulletin Solutions, Inc.
Copyright © 2024 Out of the Park Developments