Page 2 of 2 FirstFirst 12
Results 11 to 20 of 20

Thread: [SOLVED] Changing group ownership.

  1. #11
    Join Date
    Apr 2006
    Location
    Galloway Twp. NJ
    Beans
    99
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Changing group ownership.

    Quote Originally Posted by PmDematagoda View Post
    Don't worry, he's been taken care of. But in future, if you actually want spam to be taken care of then you should report it instead of going around posting threats to the spammer since it is pointless and is just wasting time.
    I did report him, on this and several other threads. And where exactly did I threaten anybody? The main point of that post was just a bump so I could get an answer.
    Last edited by Aximilli; June 6th, 2008 at 04:53 AM. Reason: tact* in hindsight
    "Think your Yourself, Question Authority"

  2. #12
    Join Date
    Mar 2008
    Location
    City of Pines
    Beans
    3,585

    Re: Changing group ownership.

    What about going inside your share directory and just issue the command:

    Code:
    sudo chmod -R 755 *
    to change all files and folders.
    Steady movement is more important than speed, much of the time. So long as there is a regular progression of Stimuli to get your mental hooks into, there is room for lateral movement. Once this begins, its rate is a matter of discretion.

  3. #13
    Join Date
    Apr 2006
    Location
    Galloway Twp. NJ
    Beans
    99
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Changing group ownership.

    Quote Originally Posted by iaculallad View Post
    What about going inside your share directory and just issue the command:

    Code:
    sudo chmod -R 755 *
    to change all files and folders.
    Well, I don't think that will help me in my ultimate goal. Let me give a little detail on what I'm trying to do, and maybe that will help to determine if that is indeed the fix I want.

    This box is going to be a headless storage server for my house. Ultimately I am going to have my machine as well as both my parents (who use windows) have a network drive that points to this /share directory. I want them to have full access to add, edit, and remove files in this dir. But I do want to keep it as secure as I can since it is accessible on the internet via ssh and webmin.
    So I created a sharers group, to which I am trying to add user accounts for my parents (hopefully without passwords, to make it easier on them) which are synchronized with the Samba users group. Which is why I'd like the /share folder and all it's sub directories to be owned by that group.

    I hope this explanation helps you in helping me.

    Thanks
    Alex
    "Think your Yourself, Question Authority"

  4. #14
    Join Date
    Mar 2008
    Location
    City of Pines
    Beans
    3,585

    Re: Changing group ownership.

    What if you just edit your smb.conf file and inlcude the following lines below:
    Code:
    [sharers]
      path = /share
      writable = yes
      printable = no
      write list =@sharers
      create mode=0770
      directory mode=0770
    Steady movement is more important than speed, much of the time. So long as there is a regular progression of Stimuli to get your mental hooks into, there is room for lateral movement. Once this begins, its rate is a matter of discretion.

  5. #15
    Join Date
    Apr 2006
    Location
    Galloway Twp. NJ
    Beans
    99
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Changing group ownership.

    well I added that code to my smb.conf file and updated it, restarted samba, and am still unable to access my share/public directory.

    Why am i not able to just permanently change the group ownership of that dir?

    Alex
    Last edited by Aximilli; June 6th, 2008 at 05:27 AM. Reason: make thing clearer
    "Think your Yourself, Question Authority"

  6. #16
    Join Date
    Mar 2008
    Location
    City of Pines
    Beans
    3,585

    Re: Changing group ownership.

    Why would it not give you explicit folder ownership What about using ACL?

    Code:
    sudo apt-get install acl
    Try changing /etc/fstab for mountpoints you wish to use the ACL.

    change /etc/fstab for the mountpoint you wish to use acl.

    Sample:

    /dev/sda1 /media/share ext3 defaults,acl 0 2
    Unmount and Mount your /media/share in order to activate the ACL. Use setfacl command to set your shared folder permission.
    Steady movement is more important than speed, much of the time. So long as there is a regular progression of Stimuli to get your mental hooks into, there is room for lateral movement. Once this begins, its rate is a matter of discretion.

  7. #17
    Join Date
    Apr 2006
    Location
    Galloway Twp. NJ
    Beans
    99
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Changing group ownership.

    Quote Originally Posted by iaculallad View Post
    Why would it not give you explicit folder ownership What about using ACL?

    Code:
    sudo apt-get install acl
    Try changing /etc/fstab for mountpoints you wish to use the ACL.

    change /etc/fstab for the mountpoint you wish to use acl.

    Sample:



    Unmount and Mount your /media/share in order to activate the ACL. Use setfacl command to set your shared folder permission.

    I've never used ACL before and don't know how it works. I really want to try and keep this server as simple as possible.

    Is it the case that I just can't change the group ownership of this folder permanently? and why not?

    and also this folder isn't in media or mnt, it's mounted into /share


    Thanks for your advice
    Alex
    "Think your Yourself, Question Authority"

  8. #18
    Join Date
    Mar 2008
    Location
    City of Pines
    Beans
    3,585

    Re: Changing group ownership.

    What about using thunar? I'm our of suggestions
    Steady movement is more important than speed, much of the time. So long as there is a regular progression of Stimuli to get your mental hooks into, there is room for lateral movement. Once this begins, its rate is a matter of discretion.

  9. #19
    Join Date
    Apr 2006
    Location
    Galloway Twp. NJ
    Beans
    99
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Changing group ownership.

    Quote Originally Posted by iaculallad View Post
    What about using thunar? I'm our of suggestions
    True Linux server, no gui
    "Think your Yourself, Question Authority"

  10. #20
    Join Date
    Apr 2006
    Location
    Galloway Twp. NJ
    Beans
    99
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Changing group ownership.

    Well, the dawn of a new day brought new inspiration. I used webmin to change owner and group of my folder, remounted it and the new permissions stuck! who would have thought webmin for the win?

    Thanks very much though for your suggestions.
    "Think your Yourself, Question Authority"

Page 2 of 2 FirstFirst 12

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •