Page Index Toggle Pages: 1 ReplyAdd Poll Send Topic
Normal Topic Re: permissions issues (Read 248 times)
 
Paste Member Name in Quick Reply Box drivetimenz
New Member
*
Offline


I Love YaBB! for 21 years
now

Posts: 19
Location: New Zealand
Joined: Jun 13th, 2026
Gender: Male
Re: permissions issues
Reply #4 - Jun 22nd, 2026 at 12:57am
Mark & QuoteQuote  
Dandello wrote on Jun 21st, 2026 at 4:51pm:
cgi-bin is used by the server software to hold perl files and other 'executable' type files. PHP does not use the cgi-bin.

A properly configured server will not allow you to execute *.pl or anything else listed as an executable (like *.cgi) from any place other than the cgi-bin. Needing to set folder or file permission to 777 means the server software is dangerously improperly configured.


  all of my sites run perl, no html & definately no php, with secure perms & locked down tight Smiley
  
Back to top
WWW  
IP Logged
 
Paste Member Name in Quick Reply Box drivetimenz
New Member
*
Offline


I Love YaBB! for 21 years
now

Posts: 19
Location: New Zealand
Joined: Jun 13th, 2026
Gender: Male
Re: permissions issues
Reply #3 - Jun 22nd, 2026 at 12:53am
Mark & QuoteQuote  
pyragony54 wrote on Jun 21st, 2026 at 3:55pm:
drivetimenz wrote on Jun 15th, 2026 at 10:43am:
cgi-bin & public to just 1 folder


It will never work that way.




why not?

i have 5 setup like that now with no issues
  
Back to top
WWW  
IP Logged
 
Paste Member Name in Quick Reply Box Dandello
Forum Administrator
YaBB Modder
*****
Offline


I love YaBB 2.7!

Posts: 2276
Location: The Land of YaBB
Joined: Feb 12th, 2014
Gender: Female
Mood: Annoyed
Zodiac sign: Virgo
Re: permissions issues
Reply #2 - Jun 21st, 2026 at 4:51pm
Mark & QuoteQuote  
cgi-bin is used by the server software to hold perl files and other 'executable' type files. PHP does not use the cgi-bin.

A properly configured server will not allow you to execute *.pl or anything else listed as an executable (like *.cgi) from any place other than the cgi-bin. Needing to set folder or file permission to 777 means the server software is dangerously improperly configured.
  

Perfection is not possible. Excellence, however, is excellent.
Back to top
WWW  
IP Logged
 
Paste Member Name in Quick Reply Box pyragony54
Language
***
Offline


I Love YaBB!

Posts: 867
Location: Йошкар-Ола
Joined: May 25th, 2014
Gender: Male
Mood: Dead
Zodiac sign: Scorpio
Re: permissions issues
Reply #1 - Jun 21st, 2026 at 3:55pm
Mark & QuoteQuote  
drivetimenz wrote on Jun 15th, 2026 at 10:43am:
cgi-bin & public to just 1 folder


It will never work that way.


  

if (idea == 'none') {use (manuals) && (Google | | search)}
if ($ answer == 0) {post (question)}
Back to top
 
IP Logged
 
Paste Member Name in Quick Reply Box drivetimenz
New Member
*
Offline


I Love YaBB! for 21 years
now

Posts: 19
Location: New Zealand
Joined: Jun 13th, 2026
Gender: Male
Re: permissions issues
Jun 15th, 2026 at 10:43am
Mark & QuoteQuote  
i installed 3 of these boards on sunday and the layout of files hasn't changed much in 20 odd years, permissions and ownership were the biggest issue but i also moved everything out of cgi-bin & public to just 1 folder (cgi-bin is pretty much obsolete now)

i still have these releases  Grin

/backup/older-backup/recovered/basehome/ftp/AnyOS/forums/yabb/Y1Gold_Release_cgi
.zip
/backup/older-backup/recovered/basehome/ftp/AnyOS/forums/yabb/Y1Gold_SP1.1_cgi.z
ip
/backup/older-backup/recovered/basehome/ftp/AnyOS/forums/yabb/YaBB_1Gold_SP1.3.2
_cgi.zip
/backup/older-backup/recovered/basehome/ftp/AnyOS/forums/yabb/YaBB_2.1.zip
/backup/older-backup/recovered/basehome/ftp/AnyOS/forums/yabb/YaBB Manual.pdf

anyway this solved the problems i see even on this board so rather than set everything to 0777 & 0666 use this...

if you're unable to do this yourself i can do it for you but i will charge, while i'm there i will change every instance of yabbforum.com to yabbforumsoftware.com as well (there's a lot) even on this board and that's not a good look


Code
Select All
 # Add user to apache or www-data group

 # On RHEL/AlmaLinux/CentOS:
 usermod -aG yourusername apache

 # On Debian/Ubuntu:
 usermod -aG yourusername www-data

 # 1. Set the owner to your SSH user, and the group to your primary group
 chown -R yourusername:yourusername /path/to/userdir

 # 1.1 restart apache
 # rhel
 systemctl restart httpd
 # debian
 systemctl restart apache2

 # 1.2 cd to forum/dir

 # 2. Set standard secure permissions (775 for folders, 664 for data files)
 find . -type d -exec chmod 775 {} +
 find . -type f -exec chmod 664 {} +

 # 3. Apply the SGID bit to directories
 # This forces all NEW files created by YaBB/Apache to inherit your group!
 find . -type d -exec chmod g+s {} +

 # 4. Apply Default ACLs (Access Control Lists)
 # This forces all NEW files to automatically get group read/write (664/775)
 # overriding any restrictive defaults hardcoded into older scripts.
 find . -type d -exec setfacl -d -m g::rwx {} +
 find . -type d -exec setfacl -d -m g::rw {} +

 # 5. Restore execute permissions to the Perl scripts so they can run
 find . -name "*.pl" -exec chmod +x {} +
 find . -name "*.cgi" -exec chmod +x {} +

  

« Last Edit: Jun 16th, 2026 at 10:29am by drivetimenz »  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
ReplyAdd Poll Send Topic
Bookmarks: del.icio.us Digg Facebook Google LinkedIn reddit Twitter Yahoo
Re: permissions issues

Please type the characters exactly as they appear in the image,
without the first 2 and last 2 characters.
The characters must be typed in the same order,
and they are case-sensitive.
Open Preview Preview

You can resize the textbox by dragging the right or bottom border.
Off Topic Comment Insert Spoiler
Insert Hyperlink Insert FTP Link Insert Image Insert E-mail Insert Media Insert Table Insert Table Row Insert Table Column Insert Horizontal Rule Insert Teletype Insert Code Insert Quote Edited Superscript Subscript Insert List /me - my name Insert Marquee Insert Timestamp No Parse
Bold Italicized Underline Insert Strikethrough Highlight
                       
Change Text Color
Insert Preformatted Text Left Align Centered Right Align
resize_wb
resize_hb







Max 5000 characters. Remaining characters:
Text size: %
More Smilies
View All Smilies
Collapse additional features Collapse/Expand additional features Smiley Wink Cheesy Grin Angry Sad Shocked Cool Huh Roll Eyes Tongue Embarrassed Lips Sealed Undecided Kiss Cry