[Discuss] Fwd: UG News: Welcome Wiley! Save 35% on 3000+ Titles - Wrox, Sybex, For Dummies

2012-11-15 Thread John Abreau
-- Forwarded message -- From: O'Reilly Media Date: Thu, Nov 15, 2012 at 4:01 AM Subject: UG News: Welcome Wiley! Save 35% on 3000+ Titles - Wrox, Sybex, For Dummies To: j...@blu.org ** View in browser . *F

[Discuss] Boston Linux Meeting Wednesday, November 21, 2012 - ARM and Low-Power Computing

2012-11-15 Thread Jerry Feldman
When: November 21, 2012 7PM (6:30PM for Q&A) Topic: ARM and Low-Power Computing Moderator:Jon Masters Location: MIT Building E51, Room 315 Summary Jon Masters returns to the BLU to talk about the ARM processor and low power computing Abstract The ARM family of processors has become very ubiquito

[Discuss] test for *other* write permissions

2012-11-15 Thread Edward Ned Harvey (blu)
I'm running a script as root, I'm going to parse a file. I can easily test that the file is owned by root. I want to test if the group or other write bit is set. If using "find" you can test that a file is writable by yourself - but not test if it's writable by anyone else. If using "stat" y

Re: [Discuss] test for *other* write permissions

2012-11-15 Thread Edward Ned Harvey (blu)
> If using "stat" you can also get the perms in 755 format. From here, I can > easily do a bitwise & with 2, and I can easily find the world write bit. But > bash > arithmetic doesn't view the number "755" in octal... It operates decimal. > So I > can't bitwise & with 16, or with 020. I have

Re: [Discuss] test for *other* write permissions

2012-11-15 Thread Gordon Marx
On Thu, Nov 15, 2012 at 5:45 PM, Edward Ned Harvey (blu) wrote: > > If using "stat" you can also get the perms in 755 format. From here, I > can > > easily do a bitwise & with 2, and I can easily find the world write bit. > But bash > > arithmetic doesn't view the number "755" in octal... It op

Re: [Discuss] test for *other* write permissions

2012-11-15 Thread Derek Martin
On Thu, Nov 15, 2012 at 10:38:43PM +, Edward Ned Harvey (blu) wrote: > I'm running a script as root, I'm going to parse a file. I can > easily test that the file is owned by root. I want to test if the > group or other write bit is set. First off, I agree with Gordon, I'd use Python or C (or

Re: [Discuss] test for *other* write permissions

2012-11-15 Thread Rich Pieri
On Thu, 15 Nov 2012 22:38:43 + "Edward Ned Harvey (blu)" wrote: > If using "find" you can test that a file is writable by yourself - > but not test if it's writable by anyone else. I disbelieve. The -perm option allows you to specify a permissions list to match. Execute is 1, write is 2, rea

Re: [Discuss] test for *other* write permissions

2012-11-15 Thread Tom Metro
Derek Martin wrote: > I'd use Python or C (or Perl for this). > import stat, os mode = os.stat(".bashrc") print ((mode.st_mode | stat.S_IWGRP) and mode.st_gid == 0) > False Shudder yourself. This operation is perfectly legible in Perl: use File::stat; use Fcntl qw(S_IWGRP S_IWOTH

Re: [Discuss] Disabling UEFI and dual booting Linux and Windows

2012-11-15 Thread Tom Metro
FYI... Dual-boot Windows 8 and Ubuntu 12.10 on UEFI hardware http://www.linuxbsdos.com/2012/11/05/dual-boot-windows-8-and-ubuntu-12-10-on-uefi-hardware/ So, I got a friend to lend me his copy of Windows 8 Pro. Armed with it, and an installation image of Ubuntu 12.10 Desktop, I set out to se

Re: [Discuss] Disabling UEFI and dual booting Linux and Windows

2012-11-15 Thread Rich Pieri
On Thu, 15 Nov 2012 22:26:37 -0500 Tom Metro wrote: > I don't think this really answers the question raised in this thread, Correct. The issue is what happens, and what steps need to be taken, when a consumer edition of Windows 8 is pre-installed on the system. -- Rich P. _