Re: r-x and r-x.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 04/24/2013 02:57 PM, Johan Vermeulen wrote:
> Dear All,
> 
> thanks for the responses.
> 
> Indeed, on machine A, Selinux is disabled.
> 
> -bash-4.1# selinuxenabled && echo enabled || echo disabled disabled
> 
> and on machine B, it's enabled.
> 
> I will test the script again on B with Selinux disabled.
> 
> Greetings, J.
> 
> Op 24-04-13 18:06, Ian Forde schreef:
>> Yep - you'll want to do a 'ls -lZ' on both dirs and compare the 
>> differences... On Apr 24, 2013 8:32 AM, "Larry Martell"
>> <larry.martell@xxxxxxxxx> wrote:
>> 
>>> On Wed, Apr 24, 2013 at 8:50 AM, Johan Vermeulen 
>>> <jvermeulen@xxxxxxxxxxxxxx> wrote:
>>>> Dear All,
>>>> 
>>>> I'm currently troubleshooting NetworkManger scripts.
>>>> 
>>>> I see a difference in machine A :
>>>> 
>>>> drwxr-xr-x 2 root root 4096 apr 24 16:33 . drwxr-xr-x 5 root root
>>>> 4096 jan  9 12:13 .. -rwxr-xr-x 1 root root  175 jan  9 12:13
>>>> 00-netreport -rwxr-xr-x 1 root root  335 okt 22  2012 04-iscsi 
>>>> -rwxr-xr-x 1 root root  345 jan  9 12:13 05-netfs -rwxr-xr-x 1 root
>>>> root  926 sep 25  2012 10-dhclient -rwxr-xr-x 1 root root  301 apr 24
>>>> 15:58 20-backuplauncher -rwxr-xr-x 1 root root  220 jun 22  2012
>>>> yum-NetworkManager-dispatcher
>>>> 
>>>> and machine B:
>>>> 
>>>> drwxr-xr-x. 2 root root 4096 apr 24 16:34 . drwxr-xr-x. 5 root root
>>>> 4096 apr 23 12:06 .. -rwxr-xr-x. 1 root root  175 jan  9 12:13
>>>> 00-netreport -rwxr-xr-x. 1 root root  345 jan  9 12:13 05-netfs 
>>>> -rwxr-xr-x. 1 root root  926 sep 25  2012 10-dhclient -rwxr-xr-x. 1
>>>> root root  326 apr 23 13:42 15-nfslauncher -rwxr-xr-x. 1 root root
>>>> 307 apr 24 16:10 20-backuplauncher -rwxr-xr-x. 1 root root  220 jun
>>>> 22  2012 yum-NetworkManager-dispatcher
>>>> 
>>>> the difference being -rwxr-xr-x and -rwxr-xr-x.
>>>> 
>>>> so with or without a dot (.)
>>>> 
>>>> Does that mean anything?
>>>> 
>>>> Thanks for any advise on this.
>>> 
>>> The . means the file has an access list with SELinux. You could try 
>>> disabling SELinux on machine B and seeing if that fixes the issue. 
>>> _______________________________________________ CentOS mailing list 
>>> CentOS@xxxxxxxxxx http://lists.centos.org/mailman/listinfo/centos
>>> 
>> _______________________________________________ CentOS mailing list 
>> CentOS@xxxxxxxxxx http://lists.centos.org/mailman/listinfo/centos
> 
> _______________________________________________ CentOS mailing list 
> CentOS@xxxxxxxxxx http://lists.centos.org/mailman/listinfo/centos
> 
Disabling SELinux is not going to fix your problem.  Since the field is just
showing you that you have extended attibutes assigned to yr files.

Why not just script around it.

ls -l | sed 's/\. / /g'

Would replace all ". " from your output.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.13 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iEYEARECAAYFAlF4LSMACgkQrlYvE4MpobMtZgCfXaIGgAUBIR+VtvmtimjiQ6Gi
lSYAoLm8RjgS0fuzXplqAVkOIdWWaqV7
=sAby
-----END PGP SIGNATURE-----
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos




[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux