LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 10-14-2010, 07:05 AM   #1
GazL
LQ Veteran
 
Registered: May 2008
Posts: 6,894

Rep: Reputation: 5014Reputation: 5014Reputation: 5014Reputation: 5014Reputation: 5014Reputation: 5014Reputation: 5014Reputation: 5014Reputation: 5014Reputation: 5014Reputation: 5014
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)

Last edited by GazL; 10-14-2010 at 07:06 AM.
 
Old 10-14-2010, 07:16 AM   #2
prayag_pjs
Senior Member
 
Registered: Feb 2008
Location: Pune - India
Distribution: RHEL/Ubuntu/Debian/Fedora/Centos/K3OS
Posts: 1,159
Blog Entries: 4

Rep: Reputation: 149Reputation: 149
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)
 
Old 10-14-2010, 07:19 AM   #3
GazL
LQ Veteran
 
Registered: May 2008
Posts: 6,894

Original Poster
Rep: Reputation: 5014Reputation: 5014Reputation: 5014Reputation: 5014Reputation: 5014Reputation: 5014Reputation: 5014Reputation: 5014Reputation: 5014Reputation: 5014Reputation: 5014
LOL!

What I meant was: Please can you confirm that it's also world writable on your system.
 
Old 10-14-2010, 07:19 AM   #4
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,090

Rep: Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173
I got the same permissions on that, GazL.
 
1 members found this post helpful.
Old 10-14-2010, 07:25 AM   #5
prayag_pjs
Senior Member
 
Registered: Feb 2008
Location: Pune - India
Distribution: RHEL/Ubuntu/Debian/Fedora/Centos/K3OS
Posts: 1,159
Blog Entries: 4

Rep: Reputation: 149Reputation: 149
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
 
Old 10-14-2010, 07:29 AM   #6
GazL
LQ Veteran
 
Registered: May 2008
Posts: 6,894

Original Poster
Rep: Reputation: 5014Reputation: 5014Reputation: 5014Reputation: 5014Reputation: 5014Reputation: 5014Reputation: 5014Reputation: 5014Reputation: 5014Reputation: 5014Reputation: 5014
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.
 
Old 10-14-2010, 07:30 AM   #7
sem007
Member
 
Registered: Nov 2006
Distribution: RHEL, CentOS, Debian Lenny, Ubuntu
Posts: 638

Rep: Reputation: 113Reputation: 113
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,
 
1 members found this post helpful.
Old 10-14-2010, 07:40 AM   #8
GazL
LQ Veteran
 
Registered: May 2008
Posts: 6,894

Original Poster
Rep: Reputation: 5014Reputation: 5014Reputation: 5014Reputation: 5014Reputation: 5014Reputation: 5014Reputation: 5014Reputation: 5014Reputation: 5014Reputation: 5014Reputation: 5014
Yep, thanks sem. That's what I'd expect it to be. Must be a minor slackware packaging snafu.
 
Old 10-14-2010, 07:51 AM   #9
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: McKinney, Texas
Distribution: Slackware64 15.0
Posts: 3,858

Rep: Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225
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/

Last edited by Richard Cranium; 10-14-2010 at 10:10 AM. Reason: IMADORK
 
Old 10-14-2010, 08:05 AM   #10
brixtoncalling
Member
 
Registered: Jul 2008
Location: British Columbia
Distribution: Slackware current
Posts: 403

Rep: Reputation: 67
Same here.

drwxrwxrwxr for example/

Last edited by brixtoncalling; 10-14-2010 at 08:55 AM.
 
Old 10-14-2010, 08:11 AM   #11
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,090

Rep: Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173Reputation: 4173
seems to be only on current
 
Old 10-14-2010, 08:35 AM   #12
GazL
LQ Veteran
 
Registered: May 2008
Posts: 6,894

Original Poster
Rep: Reputation: 5014Reputation: 5014Reputation: 5014Reputation: 5014Reputation: 5014Reputation: 5014Reputation: 5014Reputation: 5014Reputation: 5014Reputation: 5014Reputation: 5014
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/
 
Old 10-14-2010, 09:18 AM   #13
lumak
Member
 
Registered: Aug 2008
Location: Phoenix
Distribution: Arch
Posts: 799
Blog Entries: 32

Rep: Reputation: 111Reputation: 111
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
 
1 members found this post helpful.
Old 10-14-2010, 09:58 AM   #14
GazL
LQ Veteran
 
Registered: May 2008
Posts: 6,894

Original Poster
Rep: Reputation: 5014Reputation: 5014Reputation: 5014Reputation: 5014Reputation: 5014Reputation: 5014Reputation: 5014Reputation: 5014Reputation: 5014Reputation: 5014Reputation: 5014
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
 
Old 10-14-2010, 11:08 AM   #15
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928

Rep: Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612
src2pkg would have warned about those when the package was created...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
world writable directory? turbo_acura Linux - Software 8 10-17-2009 07:02 AM
FreeBSD 6.2, no /usr/src/tools and /usr/src/usr.bin, failed to build world. Mr_Shameless *BSD 4 05-16-2008 08:43 AM
crontab and world-writable directories? wy1z Linux - Security 2 01-25-2008 01:38 AM
World Writable Files ilago Linux - Security 4 10-06-2007 11:21 PM
sendmail world writable directory jbrearley Linux - Software 0 07-01-2004 12:16 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 07:02 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration