Re: [SLUG] Debugging Linux ACL's

2014-08-31 Thread David Lyon
I think I got it going from this page:

http://stackoverflow.com/questions/580584/setting-default-permissions-for-newly-created-files-and-sub-directories-under-a

Thanks for the answers



On Mon, Sep 1, 2014 at 4:51 PM, Norman Gaywood  wrote:

> On 1 September 2014 16:48, Norman Gaywood  wrote:
> > Is there anything in /etc/samba/smb.conf that might help?
>
> Also grep'ing through the logs in
>
> /var/log/samba/
>
> might have a log of the connecting computer that uses the share.
>
>
> --
> Norman Gaywood, Computer Systems Officer
> University of New England, Armidale,
> NSW 2351, Australia
>
> ngayw...@une.edu.auPhone: +61 (0)2 6773 2412
> http://mcs.une.edu.au/~normFax:   +61 (0)2 6773 3312
>
> Please avoid sending me Word or Power Point attachments.
> See http://www.gnu.org/philosophy/no-word-attachments.html
> --
> SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
> Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
>
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] Debugging Linux ACL's

2014-08-31 Thread Norman Gaywood
On 1 September 2014 16:48, Norman Gaywood  wrote:
> Is there anything in /etc/samba/smb.conf that might help?

Also grep'ing through the logs in

/var/log/samba/

might have a log of the connecting computer that uses the share.


-- 
Norman Gaywood, Computer Systems Officer
University of New England, Armidale,
NSW 2351, Australia

ngayw...@une.edu.auPhone: +61 (0)2 6773 2412
http://mcs.une.edu.au/~normFax:   +61 (0)2 6773 3312

Please avoid sending me Word or Power Point attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] Debugging Linux ACL's

2014-08-31 Thread Norman Gaywood
On 1 September 2014 16:44, Jake Anderson  wrote:
> BOFH answer, delete it and see who complains ;->

Much simpler :-)

Is there anything in /etc/samba/smb.conf that might help?

-- 
Norman Gaywood, Computer Systems Officer
University of New England, Armidale,
NSW 2351, Australia

ngayw...@une.edu.auPhone: +61 (0)2 6773 2412
http://mcs.une.edu.au/~normFax:   +61 (0)2 6773 3312

Please avoid sending me Word or Power Point attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] Debugging Linux ACL's

2014-08-31 Thread Jake Anderson


On 01/09/14 16:25, Norman Gaywood wrote:

On 1 September 2014 16:07, Jake Anderson  wrote:

Is this perhaps linked to a domain or anything like that?

Yes good point. Since this seems to be something to do with samba
shares, the user '300' is probably the uidNumber of a user in a
windows domain.

Linux can use AD as an LDAP server if you want to set it up. I think
you also need 'services for Unix' or something setup in your AD as
well. With that setup, the getent command will see the username/UID
mappings.

You can also find out the username associated with UIDnumber 300
by doing an LDAP query on AD.

ldapsearch -x -h ad-server uidNumber=300

But, that just the simplest query. A lot more needs to setup like
default DN info. Also you will probably have to bind the the AD server
as a user [-D binddn] [-w password] switches for the query to work.
And this all assumes you have the 'services for Unix' installed on
your AD server.

There may be a simple samba like way to do things that I don't know.


BOFH answer, delete it and see who complains ;->

--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] Debugging Linux ACL's

2014-08-31 Thread Norman Gaywood
On 1 September 2014 16:07, Jake Anderson  wrote:
> Is this perhaps linked to a domain or anything like that?

Yes good point. Since this seems to be something to do with samba
shares, the user '300' is probably the uidNumber of a user in a
windows domain.

Linux can use AD as an LDAP server if you want to set it up. I think
you also need 'services for Unix' or something setup in your AD as
well. With that setup, the getent command will see the username/UID
mappings.

You can also find out the username associated with UIDnumber 300
by doing an LDAP query on AD.

ldapsearch -x -h ad-server uidNumber=300

But, that just the simplest query. A lot more needs to setup like
default DN info. Also you will probably have to bind the the AD server
as a user [-D binddn] [-w password] switches for the query to work.
And this all assumes you have the 'services for Unix' installed on
your AD server.

There may be a simple samba like way to do things that I don't know.

-- 
Norman Gaywood, Computer Systems Officer
University of New England, Armidale,
NSW 2351, Australia

ngayw...@une.edu.auPhone: +61 (0)2 6773 2412
http://mcs.une.edu.au/~normFax:   +61 (0)2 6773 3312

Please avoid sending me Word or Power Point attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] Debugging Linux ACL's

2014-08-31 Thread Jake Anderson

Is this perhaps linked to a domain or anything like that?

On 01/09/14 16:01, Norman Gaywood wrote:

Then there may not be a user in your user database (/etc/passwd, LDAP,
etc) that has a UID (uidNumber) equal to 300.

That's OK, it just means there is no name associated with that UID
number. So 'ls -l' will show the owner of the file as '300', a
process listing 'ps auxf' will show processes run by '300' and not
a username, etc.


On 1 September 2014 15:53, David Lyon  wrote:

That returns nothing.


On Mon, Sep 1, 2014 at 3:49 PM, Norman Gaywood  wrote:

How about:

getent passwd 300


On 1 September 2014 15:44, David Lyon 
wrote:

Hello,

I have this, from executing the following command:

/home/samba/shares/ivm_dbase/DBASE4

# file: home/samba/shares/ivm_dbase/DBASE4
# owner: root
# group: Administrators
user::rwx
user:root:rwx
user:admin_acct:rw-
user:300:rwx
user:302:rwx
group::rwx
group:Administrators:rwx
group:302:rwx
group:Staff:rwx
group:MYOB:rwx
mask::rwx
other::---
default:user::rwx
default:user:root:rwx
default:user:300:rwx
default:user:302:rwx
default:group::---
default:group:Administrators:rwx
default:group:302:rwx
default:group:Staff:rwx
default:group:MYOB:rwx
default:mask::rwx
default:other::---

My question is how do I find out who user:300 and user:302 is?
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html



--
Norman Gaywood, Computer Systems Officer
University of New England, Armidale,
NSW 2351, Australia

ngayw...@une.edu.auPhone: +61 (0)2 6773 2412
http://mcs.une.edu.au/~normFax:   +61 (0)2 6773 3312

Please avoid sending me Word or Power Point attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html







--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] Debugging Linux ACL's

2014-08-31 Thread Norman Gaywood
Then there may not be a user in your user database (/etc/passwd, LDAP,
etc) that has a UID (uidNumber) equal to 300.

That's OK, it just means there is no name associated with that UID
number. So 'ls -l' will show the owner of the file as '300', a
process listing 'ps auxf' will show processes run by '300' and not
a username, etc.


On 1 September 2014 15:53, David Lyon  wrote:
> That returns nothing.
>
>
> On Mon, Sep 1, 2014 at 3:49 PM, Norman Gaywood  wrote:
>>
>> How about:
>>
>> getent passwd 300
>>
>>
>> On 1 September 2014 15:44, David Lyon 
>> wrote:
>> > Hello,
>> >
>> > I have this, from executing the following command:
>> >
>> > /home/samba/shares/ivm_dbase/DBASE4
>> >
>> > # file: home/samba/shares/ivm_dbase/DBASE4
>> > # owner: root
>> > # group: Administrators
>> > user::rwx
>> > user:root:rwx
>> > user:admin_acct:rw-
>> > user:300:rwx
>> > user:302:rwx
>> > group::rwx
>> > group:Administrators:rwx
>> > group:302:rwx
>> > group:Staff:rwx
>> > group:MYOB:rwx
>> > mask::rwx
>> > other::---
>> > default:user::rwx
>> > default:user:root:rwx
>> > default:user:300:rwx
>> > default:user:302:rwx
>> > default:group::---
>> > default:group:Administrators:rwx
>> > default:group:302:rwx
>> > default:group:Staff:rwx
>> > default:group:MYOB:rwx
>> > default:mask::rwx
>> > default:other::---
>> >
>> > My question is how do I find out who user:300 and user:302 is?
>> > --
>> > SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
>> > Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
>>
>>
>>
>> --
>> Norman Gaywood, Computer Systems Officer
>> University of New England, Armidale,
>> NSW 2351, Australia
>>
>> ngayw...@une.edu.auPhone: +61 (0)2 6773 2412
>> http://mcs.une.edu.au/~normFax:   +61 (0)2 6773 3312
>>
>> Please avoid sending me Word or Power Point attachments.
>> See http://www.gnu.org/philosophy/no-word-attachments.html
>
>



-- 
Norman Gaywood, Computer Systems Officer
University of New England, Armidale,
NSW 2351, Australia

ngayw...@une.edu.auPhone: +61 (0)2 6773 2412
http://mcs.une.edu.au/~normFax:   +61 (0)2 6773 3312

Please avoid sending me Word or Power Point attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] Debugging Linux ACL's

2014-08-31 Thread David Lyon
That returns nothing.


On Mon, Sep 1, 2014 at 3:49 PM, Norman Gaywood  wrote:

> How about:
>
> getent passwd 300
>
>
> On 1 September 2014 15:44, David Lyon 
> wrote:
> > Hello,
> >
> > I have this, from executing the following command:
> >
> > /home/samba/shares/ivm_dbase/DBASE4
> >
> > # file: home/samba/shares/ivm_dbase/DBASE4
> > # owner: root
> > # group: Administrators
> > user::rwx
> > user:root:rwx
> > user:admin_acct:rw-
> > user:300:rwx
> > user:302:rwx
> > group::rwx
> > group:Administrators:rwx
> > group:302:rwx
> > group:Staff:rwx
> > group:MYOB:rwx
> > mask::rwx
> > other::---
> > default:user::rwx
> > default:user:root:rwx
> > default:user:300:rwx
> > default:user:302:rwx
> > default:group::---
> > default:group:Administrators:rwx
> > default:group:302:rwx
> > default:group:Staff:rwx
> > default:group:MYOB:rwx
> > default:mask::rwx
> > default:other::---
> >
> > My question is how do I find out who user:300 and user:302 is?
> > --
> > SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
> > Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
>
>
>
> --
> Norman Gaywood, Computer Systems Officer
> University of New England, Armidale,
> NSW 2351, Australia
>
> ngayw...@une.edu.auPhone: +61 (0)2 6773 2412
> http://mcs.une.edu.au/~normFax:   +61 (0)2 6773 3312
>
> Please avoid sending me Word or Power Point attachments.
> See http://www.gnu.org/philosophy/no-word-attachments.html
>
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] Debugging Linux ACL's

2014-08-31 Thread Norman Gaywood
How about:

getent passwd 300


On 1 September 2014 15:44, David Lyon  wrote:
> Hello,
>
> I have this, from executing the following command:
>
> /home/samba/shares/ivm_dbase/DBASE4
>
> # file: home/samba/shares/ivm_dbase/DBASE4
> # owner: root
> # group: Administrators
> user::rwx
> user:root:rwx
> user:admin_acct:rw-
> user:300:rwx
> user:302:rwx
> group::rwx
> group:Administrators:rwx
> group:302:rwx
> group:Staff:rwx
> group:MYOB:rwx
> mask::rwx
> other::---
> default:user::rwx
> default:user:root:rwx
> default:user:300:rwx
> default:user:302:rwx
> default:group::---
> default:group:Administrators:rwx
> default:group:302:rwx
> default:group:Staff:rwx
> default:group:MYOB:rwx
> default:mask::rwx
> default:other::---
>
> My question is how do I find out who user:300 and user:302 is?
> --
> SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
> Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html



-- 
Norman Gaywood, Computer Systems Officer
University of New England, Armidale,
NSW 2351, Australia

ngayw...@une.edu.auPhone: +61 (0)2 6773 2412
http://mcs.une.edu.au/~normFax:   +61 (0)2 6773 3312

Please avoid sending me Word or Power Point attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


[SLUG] Debugging Linux ACL's

2014-08-31 Thread David Lyon
Hello,

I have this, from executing the following command:

/home/samba/shares/ivm_dbase/DBASE4

# file: home/samba/shares/ivm_dbase/DBASE4
# owner: root
# group: Administrators
user::rwx
user:root:rwx
user:admin_acct:rw-
user:300:rwx
user:302:rwx
group::rwx
group:Administrators:rwx
group:302:rwx
group:Staff:rwx
group:MYOB:rwx
mask::rwx
other::---
default:user::rwx
default:user:root:rwx
default:user:300:rwx
default:user:302:rwx
default:group::---
default:group:Administrators:rwx
default:group:302:rwx
default:group:Staff:rwx
default:group:MYOB:rwx
default:mask::rwx
default:other::---

My question is how do I find out who user:300 and user:302 is?
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] dos2unix Many thanks.

2014-08-31 Thread William Bennett
I had some speculation as to just
what dos2unix actually *does *. Andy White provided the information,  for
which I am grateful.

I knew it "regularised" the line endings,  but some colleagues thought that
wiithin - line peculiarities could be corrected as well.

Didn't know about setting modes within vi and/or vim. Thanks for that.

William Bennett
I
On 31/08/2014 4:25 pm, "Andy White"  wrote:

> > Final question: dos2unix will fix up the line endings. Is there anything
> > else it fixes?
>
> yes, apparently: http://ftp.gwdg.de/pub/linux/dos-util/uuencode/dos2unix.c
>
> I'm not sure if this is the latest source; I didn't bother to check.
>
> Even if you can't read C, the comments at the top make it clear.
>
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html