LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   World writable directory? /usr/doc/mpfr-2.4.2/examples (https://www.linuxquestions.org/questions/slackware-14/world-writable-directory-usr-doc-mpfr-2-4-2-examples-838012/)

GazL 10-14-2010 07:05 AM

World writable directory? /usr/doc/mpfr-2.4.2/examples
 
Code:

gazl@nix:~$ ls -ld /usr/doc/mpfr-2.4.2/examples
drwxrwxrwx 2 root root 4096 2009-11-30 02:45 /usr/doc/mpfr-2.4.2/examples

Please can someone else confirm this so I know it's not just me before I bother Pat with a bug report?
(64-current)

prayag_pjs 10-14-2010 07:16 AM

drwxrwxrwx shows its world writable

d--->directory

first rwx---> read write executable for user/owner

second/middle rwx---> read write executable for group

third/rws --> read write executable for others (world - writable)

GazL 10-14-2010 07:19 AM

LOL! :)

What I meant was: Please can you confirm that it's also world writable on your system.

ponce 10-14-2010 07:19 AM

I got the same permissions on that, GazL.

prayag_pjs 10-14-2010 07:25 AM

Hi,

I dont have that file on my system,I mean example is not there and also path is different

ls -ld /usr/share/doc/mpfr-2.4.2/*
-rw-r--r--. 1 root root 18013 Nov 30 2009 /usr/share/doc/mpfr-2.4.2/COPYING
-rw-r--r--. 1 root root 26440 Nov 30 2009 /usr/share/doc/mpfr-2.4.2/COPYING.LIB
-rw-r--r--. 1 root root 11337 Nov 30 2009 /usr/share/doc/mpfr-2.4.2/NEWS
-rw-r--r--. 1 root root 3892 Nov 30 2009 /usr/share/doc/mpfr-2.4.2/README

GazL 10-14-2010 07:29 AM

Thanks ponce. I'll drop Pat a note.

prayag_pjs, that command doesn't actually show the directory itself, which was the bit I was interested in. Thanks anyway.

sem007 10-14-2010 07:30 AM

in My LFS system permissions are 755

Code:

ls -ld /usr/share/doc/mpfr-3.0.0/examples/
drwxr-xr-x 2 root root 4096 2010-10-08 15:48 usr/share/doc/mpfr-3.0.0/examples/

Regards,

GazL 10-14-2010 07:40 AM

Yep, thanks sem. That's what I'd expect it to be. Must be a minor slackware packaging snafu.

Richard Cranium 10-14-2010 07:51 AM

On my system (Slackware64 13.1):

Code:

$ ls -l /usr/share/doc/ | grep mpfr
drwxr-xr-x  3 root root  156 2010-02-23 20:36 mpfr-2.4.2/

EDIT: I should get coffee first.

Code:

$ ls -l /usr/share/doc/mpfr-2.4.2/
total 128
-rw-r--r-- 1 root root  789 2009-11-29 20:43 AUTHORS
-rw-r--r-- 1 root root  3313 2009-11-29 20:43 BUGS
-rw-r--r-- 1 root root 18013 2009-11-29 20:43 COPYING
-rw-r--r-- 1 root root 26440 2009-11-29 20:43 COPYING.LIB
-rw-r--r-- 1 root root 16213 2009-11-29 20:43 FAQ.html
-rw-r--r-- 1 root root 14796 2009-11-29 20:44 INSTALL
-rw-r--r-- 1 root root 11337 2009-11-29 20:43 NEWS
-rw-r--r-- 1 root root  3892 2009-11-29 20:43 README
-rw-r--r-- 1 root root 18708 2009-11-29 20:43 TODO
-rw-r--r-- 1 root root    9 2010-02-23 20:35 VERSION
drwxrwxrwx 2 root root    68 2009-11-29 20:45 examples/


brixtoncalling 10-14-2010 08:05 AM

Same here.

drwxrwxrwxr for example/

ponce 10-14-2010 08:11 AM

seems to be only on current

GazL 10-14-2010 08:35 AM

Nope, it's like that in the package for 64/13.1 too. A number of the posts above are looking at the wrong directory.
Code:

# tar -tvf ./slackware64-13.1/slackware64/l/mpfr-2.4.2p03-x86_64-1.txz | grep "examples/$"
drwxrwxrwx root/root        0 2009-11-30 02:45 usr/doc/mpfr-2.4.2/examples/


lumak 10-14-2010 09:18 AM

Also odd permissions on 13.1 64bit.. but far less harmful.

2775
drwxrwsr-x 2 root root /usr/doc/syslinux-3.84/doc

2775
drwxrwsr-x 2 root root /usr/doc/syslinux-3.84/manual


find -xdev -type d -perm /o+w,g+w

GazL 10-14-2010 09:58 AM

There's a handful of other weird SGID ones under /usr too. try this:

find /usr -type d ! -perm 755 -print0| xargs -0r ls -ld

gnashley 10-14-2010 11:08 AM

src2pkg would have warned about those when the package was created...


All times are GMT -5. The time now is 05:47 PM.