rights & Daemons

This forum is for discussion about general software issues.

rights & Daemons

Postby Socaltom » Mon Oct 28, 2013 11:35 pm

Ok,
I'm running motion to monitor some ip cams. When it creates new directories, and files they are owned by rootr:root.
My samba guest user is guest. The guest account can view them, but not delete the files/directories.

I'd like to be able to delete them from my windows box through samba, but I'm not sure how to make one of the following work.

1) start motion with user guest, so that all the files and directories can be deleted by guest
2) set default rights for those directories to 777 do guest can delete them.
3) Other option?

This is a V3, so this needs to work with rc.d
Thanks
Tom
used to be owned by me
Pink Pogo V2, Black Pogo V3, Zyxel NAS 325 v1,
used to be Adminstrator for
Goflex net, Black V3, Black V2
Now I have a couple of raspberry pi ( 3+ and 4)
Socaltom
 
Posts: 571
Joined: Thu Apr 07, 2011 2:21 pm
Location: The left side

Re: rights & Daemons

Postby WarheadsSE » Tue Oct 29, 2013 12:30 am

make guest the group owner
chown root:guest <dir>
chmod g+S <dir>

Or, 644 the files with a mask.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: rights & Daemons

Postby moonman » Tue Oct 29, 2013 12:32 am

If you are not concerned about security, you can add an option to smb.conf to force user root
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3388
Joined: Sat Jan 15, 2011 3:36 am

Re: rights & Daemons

Postby Socaltom » Tue Oct 29, 2013 4:44 am

$this->bbcode_second_pass_quote('WarheadsSE', 'm')ake guest the group owner
chown root:guest <dir>
chmod g+S <dir>

Or, 644 the files with a mask.

Motion makes new files all the tine, and they all are root:root so I think your solution only helps with older files.
used to be owned by me
Pink Pogo V2, Black Pogo V3, Zyxel NAS 325 v1,
used to be Adminstrator for
Goflex net, Black V3, Black V2
Now I have a couple of raspberry pi ( 3+ and 4)
Socaltom
 
Posts: 571
Joined: Thu Apr 07, 2011 2:21 pm
Location: The left side

Re: rights & Daemons

Postby WarheadsSE » Tue Oct 29, 2013 4:17 pm

the group sticky bit, have a look into it.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: rights & Daemons

Postby Socaltom » Tue Oct 29, 2013 8:21 pm

$this->bbcode_second_pass_quote('WarheadsSE', 't')he group sticky bit, have a look into it.


Ahh, looks like I learned something new today. That should do it, I'll give it a try.
Tom
used to be owned by me
Pink Pogo V2, Black Pogo V3, Zyxel NAS 325 v1,
used to be Adminstrator for
Goflex net, Black V3, Black V2
Now I have a couple of raspberry pi ( 3+ and 4)
Socaltom
 
Posts: 571
Joined: Thu Apr 07, 2011 2:21 pm
Location: The left side


Return to General

Who is online

Users browsing this forum: No registered users and 7 guests