Koozali.org: home of the SME Server

Obsolete Releases => SME 7.x Contribs => Topic started by: NiceM on November 16, 2008, 12:12:14 PM

Title: Chmod
Post by: NiceM on November 16, 2008, 12:12:14 PM
If i do a chmod to chmod 777 /home/e-smith/files/ibays/Primary/html/includes/arcade/games/ the folder games is chmod to 777 but all subfolders are not.
Is there a way to chmod the folder with all subfolders at ones?
Title: Re: Chmod
Post by: byte on November 16, 2008, 01:54:23 PM
If i do a chmod to chmod 777

It's not advisable to set permissions of 777 as it's a security risk, search google for more information. The question would be why do you think you need to set permissions to 777, please tell us more about what your trying to achieve.
Title: Re: Chmod
Post by: cactus on November 16, 2008, 04:22:26 PM
It's not advisable to set permissions of 777 as it's a security risk, search google for more information. The question would be why do you think you need to set permissions to 777, please tell us more about what your trying to achieve.
If you need help on basic linux commands you can get them easily by using the man command. For instance
Code: [Select]
man chmod would have shown you (that with many other commands) you could have added the -R or --recursive option.

Furthermore I agree with byte, perhaps if you tell us what you desire is and where the system is preventing you we can help you sort things out in a better way.
Title: Re: Chmod
Post by: cactus on November 16, 2008, 04:22:56 PM
If you need help on basic linux commands you can get them easily by using the man command. For instance
Code: [Select]
man chmod would have shown you (that here as well as with many other commands) you could have added the -R or --recursive option.

Furthermore I agree with byte, perhaps if you tell us what you desire is and where the system is preventing you we can help you sort things out in a better way.
Title: Re: Chmod
Post by: NiceM on November 16, 2008, 04:57:51 PM
I have an phpbb3 arcade on my site, and the 2 folders have to be chmod 777 in order to play the games, sorry i didn't told that.
I will try to look up the commands Thanks.
Title: Re: Chmod
Post by: cactus on November 16, 2008, 04:59:53 PM
I have an phpbb3 arcade on my site, and the 2 folders have to be chmod 777 in order to play the games, sorry i didn't told that.
I will try to look up the commands Thanks.
Are you sure 755 is not enough?
Title: Re: Chmod
Post by: byte on November 16, 2008, 05:03:00 PM
Moving this topic to the SME 7.x contribs forum, it is more appropriate there. Thanks!
Title: Re: Chmod
Post by: NiceM on November 16, 2008, 06:09:50 PM
Are you sure 755 is not enough?
Ups, the install instructions say actualy 755, i'll change that right away.
Title: Re: Chmod
Post by: NiceM on December 16, 2008, 11:34:53 AM
I'm still having a little trouble with chmod, the folders for the games are chmod to 755 with me as owner, but when i let my homepage make a new folder i'm not the owner of that folder and can't upload anything to it.
I have used chown -R admin /home/e-smith/files/ibays/igames/html/forum/arcade/games/ and that's okay for the folders already there, but every time i let my arcade make a new folder it's owned by www.
Is it posible to change that?
Title: Re: Chmod
Post by: cactus on December 16, 2008, 04:07:22 PM
I'm still having a little trouble with chmod, the folders for the games are chmod to 755 with me as owner, but when i let my homepage make a new folder i'm not the owner of that folder and can't upload anything to it.
I have used chown -R admin /home/e-smith/files/ibays/igames/html/forum/arcade/games/ and that's okay for the folders already there, but every time i let my arcade make a new folder it's owned by www.
Is it posible to change that?
How are you accessing those files? What method do you use?
What are the ibay settings:
Code: [Select]
db accounts show igames
Title: Re: Chmod
Post by: NiceM on December 16, 2008, 04:53:01 PM
This is what it come out with
Code: [Select]
igames=ibay
    CgiBin=enabled
    Gid=5003
    Group=admin
    Name=For the arcade
    PasswordSet=no
    PublicAccess=global
    Uid=5003
    UserAccess=wr-group-rd-group
Title: Re: Chmod
Post by: NiceM on December 16, 2008, 04:57:17 PM
I forgot to tell, i'm accessing the files trough home network.
Title: Re: Chmod
Post by: cactus on December 16, 2008, 05:49:06 PM
I forgot to tell, i'm accessing the files trough home network.
Then you should assign a group with the users who are allowed to access the ibay for write access and not only admin as you are doing now.
Title: Re: Chmod
Post by: NiceM on December 16, 2008, 06:57:35 PM
It didn't help much. Now i'm having this
Code: [Select]
igames=ibay
    CgiBin=enabled
    Gid=5003
    Group=moderators
    Name=For the arcade
    PasswordSet=no
    PublicAccess=global
    Uid=5003
    UserAccess=wr-group-rd-group
And i tryed to install a game, the folder created with the game is now chmod this 2755 and i can't upload to it or delete anything from it
Title: Re: Chmod
Post by: cactus on December 16, 2008, 07:15:10 PM
It didn't help much. Now i'm having this
Code: [Select]
igames=ibay
    CgiBin=enabled
    Gid=5003
    Group=moderators
    Name=For the arcade
    PasswordSet=no
    PublicAccess=global
    Uid=5003
    UserAccess=wr-group-rd-group
And i tryed to install a game, the folder created with the game is now chmod this 2755 and i can't upload to it or delete anything from it
And you are sure you added the required users to the group?
Code: [Select]
db accounts getprop moderators Members
Title: Re: Chmod
Post by: NiceM on December 16, 2008, 07:51:59 PM
To be sure i added all users to the group, when i check with my ftp client it says User: www
Group: moderators
Permissions: 2755