Re: perl controlling samba permissions?

From: Ben Morrow (usenet_at_morrow.me.uk)
Date: 02/19/04


Date: Thu, 19 Feb 2004 19:20:22 +0000 (UTC)


usenet@outshine.com (Anthony Boyd) wrote:
> I have a Linux box that is going to share a directory via Samba.
> People will be authorized to use the share via LDAP. They may change
> the file permissions (on the Samba/Windows side, but the Linux
> permissions should remain unchanged).
>
> I wanted to have a PHP script read the Samba permissions set on each
> file, and display that via a Web page. PHP doesn't appear up to the
> task (but it can get/set Linux permissions OK).
>
> Can Perl handle this? I thought Filesys::SmbClient might work, but
> the docs imply Linux permissions can be changed, not the Windows side.

I don't think the two sets of permissions are distinct...

Ben

-- 
$.=1;*g=sub{print@_};sub r($$\$){my($w,$x,$y)=@_;for(keys%$x){/main/&&next;*p=$
$x{$_};/(\w)::$/&&(r($w.$1,$x.$_,$y),next);$y eq\$p&&&g("$w$_")}};sub t{for(@_)
{$f&&($_||&g(" "));$f=1;r"","::",$_;$_&&&g(chr(0012))}};t    # ben@morrow.me.uk
$J::u::s::t, $a::n::o::t::h::e::r, $P::e::r::l, $h::a::c::k::e::r, $.


Relevant Pages

  • RE: File permissions and group and user access problem
    ... I am not sure if this is a Linux or a Samba problem, ... I need to establish a directory for our accounting files that only ... Setup an Accounting directory on server; current permissions ...
    (RedHat)
  • Re: Still cant network Linux and Windows
    ... Windows box, can only read them, and just changing the Linux ... Samba if you want access using that method. ...
    (comp.protocols.smb)
  • Re: Thinking outside the box on file systems
    ... multiple mailing lists now and I've had enough. ... *cannot* allow the entity who specifies permissions check semantics on ... In the Linux world there are two ways to proceed: ... difficulty winning people over that security modules that do depend on ...
    (Linux-Kernel)
  • Re: Noob linux user here
    ... Sounds like a permissions or security issue. ... I don't know what level of samba setup automation there is in later SuSE ... those of the Linux filesystem. ...
    (alt.os.linux.suse)
  • SUMMARY-taring between solaris and linux
    ... Florendo, Jay Jay ... Matthew (Thanks for your precios time to write a very good notes on this ... I have a two machine One is sun and other is linux. ... Permissions, block size... ...
    (SunManagers)