From owner-freebsd-questions@FreeBSD.ORG Mon Feb 9 20:43:45 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 453E810656C5 for ; Mon, 9 Feb 2009 20:43:45 +0000 (UTC) (envelope-from tajudd@gmail.com) Received: from yw-out-2324.google.com (yw-out-2324.google.com [74.125.46.28]) by mx1.freebsd.org (Postfix) with ESMTP id E6F408FC14 for ; Mon, 9 Feb 2009 20:43:44 +0000 (UTC) (envelope-from tajudd@gmail.com) Received: by yw-out-2324.google.com with SMTP id 2so619690ywt.13 for ; Mon, 09 Feb 2009 12:43:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=W8uhPbi5P2GhBQGgWG0XfA4oy/7X/7IDPCXu1l4qi2M=; b=qMLjC4k/4WbzFqNgaeg9cgRLwxWMQe0/r7SPU7WzM9yOqPgdgh5Kly6U5fbrywFz8B fmmOoAXivsUq+0iGHCagerRrih1jrTzaJz0376t4EZwjI4Bne3bCf/e4LNZI0FpLgXNu Uu3p10Sjv+zVkMSjR8BbRJYC8i13UueH0j/8s= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=tsVRQmv4tJRjXaZ6xWuQEheCgUw8IPith/PKOUs0+yqc4vih5lN0Jh+l9KWDG9oIe6 hmTFBSsoZodz0LXEqhjjaGFOzuTw9RMILRk01z1eEJOX1eBMvApRbc1QAlcjyQnunlpd ZaTfJD1YJjdnvbV5eSKspXvkE8Mka65bou9r4= MIME-Version: 1.0 Received: by 10.231.20.1 with SMTP id d1mr719897ibb.17.1234212223617; Mon, 09 Feb 2009 12:43:43 -0800 (PST) In-Reply-To: <20090209024630.GA1134@bsd.remdog.net> References: <20090209024630.GA1134@bsd.remdog.net> Date: Mon, 9 Feb 2009 13:43:43 -0700 Message-ID: From: Tim Judd To: FreeBSD Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Re: gtkpod permissions problem X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Feb 2009 20:43:45 -0000 On Sun, Feb 8, 2009 at 7:46 PM, Rem P Roberti wrote: > > Rem P Roberti writes: > > > > > I have installed gtkpod for use with my Nano, but I'm having a problem > > > when trying to add files. The Nano is mounted at /mnt/ipod, and when I > > > try to add a file I get a message similar to this: > > > > > > Transfer of 'Petite Fleur' failed. Error opening > > > '/mnt/ipod/iPod_Control/Music/F00/gtkpod795096.mp3' for writing > > > (Permission denied). > > > > > > The file, in this case Petite Fleur, shows up in gtkpod, but it can't > be > > > written to the Nano. This obviously looks like a permissions problem, > > > but I can't figure out its cause. > > > > Look at the permissions on that file, and the directory containing it, > > and the mount point. I'm sure at least one of them isn't sufficiently > > permitted to the user running gtkpod. > > You were quite right. I was dealing with a Nano that already had files > on it installed by iTunes. Nothing that I could do, even as root, would > allow me to change the permissions of /mnt/ipod. To make a long story > short, I cleared the Nano of all previously installed files, and started > from zero with gtkpod and now everything works smoothly. I'm still not > sure why I wasn't able to change the permissions of the mounted Nano as > su, but I guess that is typical when dealing with mounted devices. > > --Rem Depending on the filesystem of the iPod itself -- for example an MSDOS/FAT format will set a UID/GID on mount, and no chown will hold. umount /mnt/ipod chown root:wheel /mnt/ipod chmod 0777 /mnt/ipod # optionally, set it sticky bit, chmod 1777 /mnt/ipod mount /dev/ipod /mnt/ipod now try to access the files. I am aware the problem was previously fixed, but for the archives among other reasons, I felt compelled to reply. Enjoy your iPod.