Koozali.org: home of the SME Server

Chmod

Offline NiceM

  • *
  • 12
  • +0/-0
Chmod
« 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?

Offline byte

  • *
  • 2,183
  • +2/-0
Re: Chmod
« Reply #1 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.
--[byte]--

Have you filled in a Bug Report over @ http://bugs.contribs.org ? Please don't wait to be told this way you help us to help you/others - Thanks!

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: Chmod
« Reply #2 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.
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: Chmod
« Reply #3 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.
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline NiceM

  • *
  • 12
  • +0/-0
Re: Chmod
« Reply #4 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.

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: Chmod
« Reply #5 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?
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline byte

  • *
  • 2,183
  • +2/-0
Re: Chmod
« Reply #6 on: November 16, 2008, 05:03:00 PM »
Moving this topic to the SME 7.x contribs forum, it is more appropriate there. Thanks!
--[byte]--

Have you filled in a Bug Report over @ http://bugs.contribs.org ? Please don't wait to be told this way you help us to help you/others - Thanks!

Offline NiceM

  • *
  • 12
  • +0/-0
Re: Chmod
« Reply #7 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.

Offline NiceM

  • *
  • 12
  • +0/-0
Re: Chmod
« Reply #8 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?

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: Chmod
« Reply #9 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
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline NiceM

  • *
  • 12
  • +0/-0
Re: Chmod
« Reply #10 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

Offline NiceM

  • *
  • 12
  • +0/-0
Re: Chmod
« Reply #11 on: December 16, 2008, 04:57:17 PM »
I forgot to tell, i'm accessing the files trough home network.

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: Chmod
« Reply #12 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.
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline NiceM

  • *
  • 12
  • +0/-0
Re: Chmod
« Reply #13 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

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: Chmod
« Reply #14 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
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)