[CentOS] Understanding FS ACLs

2010-08-20 Thread Silviu Hutanu
I have problem understanding FS ACLs.Can someone explain me why the
following behaviour occur?

Let's suppose that we have a /shared directory we want to give rwx access to
admins group.

setfacl -m d:g:admins:rwx shared

[r...@rh1 /]# getfacl shared
# file: shared
# owner: root
# group: root
user::rwx
group::r-x
other::---
default:user::rwx
default:group::r-x
default:group:admins:rwx
default:mask::rwx
default:other::---



[r...@rh1 /]# su - jack
[j...@rh1 ~]$ id
uid=500(jack) gid=507(admins) groups=507(admins)
context=root:system_r:unconfined_t:SystemLow-SystemHigh
[j...@rh1 ~]$ cd /shared/
-bash: cd: /shared/: Permission denied
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Guidance on Linux Kernel/OS Programming for Beginners

2010-08-22 Thread Silviu Hutanu
Regarding your mail...

I'm also a sysadmin who also what to push the limits further ... i remember
some C/C++ from colllege and some java and shell scripting  from my current
job as java programmer .

Feel free to contact me in the case you have some plans to start a project
do to something the described direction...

I'll also want to do something in the direction specified


Thanks,

Silviu Hutanu

System Administrator/Java Developer
http://nepatec.de

If if you look for someone to help with something ...I will be happy to help
with something .

On Sun, Aug 22, 2010 at 10:18 PM, linux-crazy  wrote:

> Hi List,
>
>
>  I am working on LINUX for the past six years , and am a core linux
> guys since i started my career on linux . Working more on Redhat /
> centos / Fedora based distribution system administration  . with some
> basic bash scripting knowledge.
>
>  Now am looking to deep dive into programming to contribute  or
> innovate some thing new on  linux operating system or kernel space
> (More importantly on kvm virtualization front since am an expert on
> virtualization).  So i need  your  guidance to start my new career on
> linux programming front . As of now am planned to start with below
> sequences .
>
>
>  C
>  C++
>  Linux kernel Programming
>  python
>  Java
>
>  Kindly provide me some good web links or   beginner to advanced docs
> for the above languages to start  ,  also correct me if am wrong any
> where .
>
>  Awaiting for your valuable input
>
> Regards,
>
>  lingu
> ___
> CentOS mailing list
> CentOS@centos.org
> http://lists.centos.org/mailman/listinfo/centos
>
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] netstat - kill by pid ?

2010-09-28 Thread Silviu Hutanu
Hi ,

You can use this:

kill -9 `netstat -antp|grep 8080|grep java|awk '{ print $7 }'|cut -d'/' -f
1`

But if had to do the same thing I would search in the running processes
instead using netstat, anyway you can extract the pid in the same way.


Silviu

On Tue, Sep 28, 2010 at 7:14 PM, Carlos S  wrote:

> I am writing a small script to kill process(es) listening on
> particular port number. Here I am particularly looking at Java
> servlet-containers like Tomcat and JBoss, which sometimes don't
> complete their shutdown process and it still shows up as running
> process with ps or netstat. This needs to be kill-ed and for that
> knowing pid of that process is necessary. The netstat by default
> doesn't give only pid(s), so one has to use sed/awk/tr like utility to
> extract pid info. Does anyone know any program/utility which gives
> pid(s) based on listening port numbers? Or is there any option in
> netstat that I am missing?
>
> Thanks,
> CS.
> ___
> CentOS mailing list
> CentOS@centos.org
> http://lists.centos.org/mailman/listinfo/centos
>
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] difference between stickybit SUID and SGID

2010-07-09 Thread Silviu Hutanu
Here are my personal notes regarding these special perms :

 Octal perm : 4000 (chmod +s )  SUID Other users execute this file as owner
of file
 Octal perm: 2000  (chmod +g )  GUID Other users execute this as group of
the file/dir  (It can be applyied to directories )
 Ocatl perm: 1000Sticky bit (Ensuring that users cannot delete other
users files in a directory)

SUID : chmod u+s file
GUID: chmod u+g dir
Sticky bit: chmod u+f file/dir


 Best regards,

Silviu Hutanu
--

Nepatec Soft SRL  -  it consulting & software
N. Titulescu 4
500010 Brasov, Romania
tel/fax: +40 (0)368 003 100
www.nepatec.de





On Fri, Jul 9, 2010 at 3:03 PM, Agnello George wrote:

> i had a small query , whant is the difference between stickybit SUID and
> SGID  , is there any proper site where i can get a clear understanding .
>
>
> --
> Regards
> Agnello D'souza
>
>
>
> ___
> CentOS mailing list
> CentOS@centos.org
> http://lists.centos.org/mailman/listinfo/centos
>
>
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] 2X app server alternatives

2010-07-18 Thread Silviu Hutanu
Does anyone know any oss alternatives to 2x aplication server ?

Regards,

Silviu Hutanu
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] KVM iptables rules

2010-07-24 Thread Silviu Hutanu
After I installed kvm I noticed that some rules are appended automatically
by some tools that come with kvm packages(I installed all KVM group with
yum) .
The problem is that after I appended my rules I and used the
/etc/init.d/iptables script to save changes in /etc/sysconfig/iptables I saw
that after restarted the machine that tool appended the rules once again ...
so now I have double entries for kvm rules.
Does anyone know how can I block this mysterious tool to append rules in my
tables ?

Kind Regards,

Silviu Hutanu
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] KVM iptables rules

2010-07-25 Thread Silviu Hutanu
In this way I will disable the virtual NIC's , but I steel need networking
:) .
I just want to get rid of the iptables rules inserted at boot by libvirt
tools.



On Sun, Jul 25, 2010 at 8:25 AM, aditya hilman wrote:

> On Sun, Jul 25, 2010 at 2:20 AM, Silviu Hutanu 
> wrote:
> > After I installed kvm I noticed that some rules are appended
> automatically
> > by some tools that come with kvm packages(I installed all KVM group with
> > yum) .
> > The problem is that after I appended my rules I and used the
> > /etc/init.d/iptables script to save changes in /etc/sysconfig/iptables I
> saw
> > that after restarted the machine that tool appended the rules once again
> ...
> > so now I have double entries for kvm rules.
> > Does anyone know how can I block this mysterious tool to append rules in
> my
> > tables ?
> >
> > Kind Regards,
> >
> > Silviu Hutanu
> >
> >
> >
> >
> >
> >
> > ___
> > CentOS mailing list
> > CentOS@centos.org
> > http://lists.centos.org/mailman/listinfo/centos
> >
> >
>
> virsh net-destroy default
> virsh net-undefine default
>
> --
> Regards,
> Adit
> http://simplyaddo.web.id
> ym : science2rule
> ___
> CentOS mailing list
> CentOS@centos.org
> http://lists.centos.org/mailman/listinfo/centos
>
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos