LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 01-13-2014, 07:34 PM   #1
j_v
Member
 
Registered: Oct 2011
Distribution: Slackware64
Posts: 364

Rep: Reputation: 67
wpa_supplicant docs are set to read-only


I was looking at the wpa_supplicant package this last weekend. After extracting the package to a separate temporary directory and having looked the contents, I was surprised when my `rm -rf` of the temporary directory failed. The problem was that the whole of the usr/doc/wpa_supplicant-2.0 directory contents were read-only. I looked at the SlackBuild for wpa_supplicant and saw this:

Code:
chmod -R a-w $PKG/usr/doc/$PKGNAM-$VERSION/*
on line 157. Is this a typo? Was it supposed to be:

Code:
chmod -R a-x $PKG/usr/doc/$PKGNAM-$VERSION/*
to ensure that the examples would have to be manually set to +x to be executed?
I realize this is pretty minor, but it seemed weird to me when the dir removal failed.

-John
 
Old 01-13-2014, 07:43 PM   #2
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
I can't think of a scenario where I'd want random scripts in the /usr/doc directory executable.
 
1 members found this post helpful.
Old 01-13-2014, 07:46 PM   #3
j_v
Member
 
Registered: Oct 2011
Distribution: Slackware64
Posts: 364

Original Poster
Rep: Reputation: 67
Thanks for your response. So probably a typo, then. Since all of the example scripts in /usr/doc/wpa_supplicant-2.0/examples are just that: executable. Not so minor, maybe.

EDIT: Should this be mailed in as a bug to Pat?

EDIT #2: the chmod command should probably be:
Code:
chmod -R -a-x $PKG/usr/doc/$PKGNAM-$VERSION/examples/*
rather than my other code block above.

EDIT #3: or better yet:
Code:
find $PKG/usr/doc/$PKGNAM-$VERSION/* -executable ! -type d -exec chmod a-x {} \;

Last edited by j_v; 01-14-2014 at 08:31 PM. Reason: fix MY typo for chmod args in find expression (-a-x > a-x)
 
Old 01-27-2014, 11:59 AM   #4
j_v
Member
 
Registered: Oct 2011
Distribution: Slackware64
Posts: 364

Original Poster
Rep: Reputation: 67
How do I make this into a bug report?
 
Old 01-28-2014, 12:28 PM   #5
sanjioh
Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 92

Rep: Reputation: Disabled
An email to Pat is usually fine as bug report
 
Old 01-28-2014, 03:32 PM   #6
j_v
Member
 
Registered: Oct 2011
Distribution: Slackware64
Posts: 364

Original Poster
Rep: Reputation: 67
Thank you. I've looked in several different slackware docs and the most definitive had been the install email that recommends posting bug reports here. I will email a report today.

EDIT: hmmm, easy to say, but I cannot find his address. Perhaps, instead, I should use info@slackware.com?

Last edited by j_v; 01-28-2014 at 09:38 PM.
 
Old 01-29-2014, 03:45 AM   #7
sanjioh
Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 92

Rep: Reputation: Disabled
ftp://ftp.osuosl.org/pub/slackware/s...lackware-HOWTO
 
Old 01-29-2014, 03:27 PM   #8
j_v
Member
 
Registered: Oct 2011
Distribution: Slackware64
Posts: 364

Original Poster
Rep: Reputation: 67
Ouch. I would have sworn I had read that one.
 
Old 01-30-2014, 05:15 PM   #9
j_v
Member
 
Registered: Oct 2011
Distribution: Slackware64
Posts: 364

Original Poster
Rep: Reputation: 67
Closing this thread. It is simple enough to do a search of the /usr/doc heirarchy and set permissions as desired.

Code:
find /usr/doc ! -type l ! -perm -u=w | xargs chmod u+w
find /usr/doc ! -type l -perm -go=w | xargs chmod go-w
find /usr/doc ! -type l ! -type d \( -perm -u=x -o -perm -g=x -o -perm -o=x \) | xargs chmod a-x
 
Old 01-30-2014, 05:36 PM   #10
sanjioh
Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 92

Rep: Reputation: Disabled
yes, the fix for this is simple indeed. now let's see what Pat will decide about the permissions inside the package
 
Old 01-30-2014, 05:53 PM   #11
j_v
Member
 
Registered: Oct 2011
Distribution: Slackware64
Posts: 364

Original Poster
Rep: Reputation: 67
sanjioh, you are right.
 
  


Reply



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
[SOLVED] Set up "Kiosk" directory, Ubuntu Linux ver 10.04 server-i386; cannot open odt docs SteveLange9949 Linux - Server 4 05-01-2011 07:45 PM
set up a wireless card and wpa_supplicant mariogarcia Linux - Wireless Networking 1 12-14-2007 10:00 AM
Bind 9 help, I did read tutorials and docs on this. Antimatter Linux - Networking 5 02-27-2007 07:13 PM
cannot set up wpa_supplicant karmacoma Linux - Wireless Networking 1 11-29-2004 07:23 AM
Can't read html docs from Samba share...ideas? _TK_ Linux - Newbie 6 02-14-2001 08:22 PM

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

All times are GMT -5. The time now is 12:14 PM.

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