Re: Strange behavior
Michael Tautschnig wrote: [...] [EMAIL PROTECTED]:~$ ls -la /sda1 total 4908 drwxr-xr-x 14 root root 16384 Jan 1 1970 . drwxr-xr-x 37 root root4096 Jan 11 16:19 .. -rwxr-xr-x 1 root root6148 Jan 10 13:56 .DS_Store drwxr-xr-x 2 root root2048 Nov 23 12:27 .Trash-swe . . . -rwxr-xr-x 1 root root 180 Jan 11 15:59 hints . . . [EMAIL PROTECTED]:~$ sudo mount /dev/sda1 /sda1 [EMAIL PROTECTED]:~$ sudo chown -R swe /sda1 chown: changing ownership of `/sda1': Operation not permitted chown: changing ownership of `/sda1/.Trashes': Operation not permitted chown: changing ownership of `/sda1/macintosh.pdf': Operation not permitted . . . chown: changing ownership of `/sda1/hints': Operation not permitted . . . That seems strange to me, what filesystem is it? The only thing I could imagine is that the filesystem doesn't support the operation - VFAT? Don't no what filesystem, it's an USB-Memory stick. So I think it isn't a filesystem in the common sense. snipp... HTH, partly Fritz -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: Strange behavior
On Fri, Jan 13, 2006 at 10:39:21AM +0100, Fritz Wettstein wrote: Michael Tautschnig wrote: [...] [EMAIL PROTECTED]:~$ ls -la /sda1 total 4908 drwxr-xr-x 14 root root 16384 Jan 1 1970 . drwxr-xr-x 37 root root4096 Jan 11 16:19 .. -rwxr-xr-x 1 root root6148 Jan 10 13:56 .DS_Store drwxr-xr-x 2 root root2048 Nov 23 12:27 .Trash-swe . . . -rwxr-xr-x 1 root root 180 Jan 11 15:59 hints . . . [EMAIL PROTECTED]:~$ sudo mount /dev/sda1 /sda1 [EMAIL PROTECTED]:~$ sudo chown -R swe /sda1 chown: changing ownership of `/sda1': Operation not permitted chown: changing ownership of `/sda1/.Trashes': Operation not permitted chown: changing ownership of `/sda1/macintosh.pdf': Operation not permitted . . . chown: changing ownership of `/sda1/hints': Operation not permitted . . . That seems strange to me, what filesystem is it? The only thing I could imagine is that the filesystem doesn't support the operation - VFAT? Don't no what filesystem, it's an USB-Memory stick. So I think it isn't a filesystem in the common sense. Anything that you mount is a filesystem. When the stick is mounted try $ mount and it will say what filesystem it is. Since VFAT is the most common filesystem used on USB-memory sticks, that is almost certainly the problem here. -- Hans Ekbrand (http://sociologi.cjb.net) [EMAIL PROTECTED] A. Because it breaks the logical sequence of discussion Q. Why is top posting bad? signature.asc Description: Digital signature
Re: Strange behavior
Op vrijdag 13 januari 2006 11:35, schreef Hans Ekbrand: On Fri, Jan 13, 2006 at 10:39:21AM +0100, Fritz Wettstein wrote: Michael Tautschnig wrote: [...] [EMAIL PROTECTED]:~$ ls -la /sda1 total 4908 drwxr-xr-x 14 root root 16384 Jan 1 1970 . drwxr-xr-x 37 root root4096 Jan 11 16:19 .. -rwxr-xr-x 1 root root6148 Jan 10 13:56 .DS_Store drwxr-xr-x 2 root root2048 Nov 23 12:27 .Trash-swe . . . -rwxr-xr-x 1 root root 180 Jan 11 15:59 hints . . . [EMAIL PROTECTED]:~$ sudo mount /dev/sda1 /sda1 [EMAIL PROTECTED]:~$ sudo chown -R swe /sda1 chown: changing ownership of `/sda1': Operation not permitted chown: changing ownership of `/sda1/.Trashes': Operation not permitted chown: changing ownership of `/sda1/macintosh.pdf': Operation not permitted . . . chown: changing ownership of `/sda1/hints': Operation not permitted . . . That seems strange to me, what filesystem is it? The only thing I could imagine is that the filesystem doesn't support the operation - VFAT? Don't no what filesystem, it's an USB-Memory stick. So I think it isn't a filesystem in the common sense. Anything that you mount is a filesystem. When the stick is mounted try $ mount and it will say what filesystem it is. Since VFAT is the most common filesystem used on USB-memory sticks, that is almost certainly the problem here. I can confirm that VFAT doesn't support changing ownership. -- Lingewoud B.V.| Tel. +31 418 663963 Maasdijk 4| Fax. +31 418 663053 5328 BG Rossum| [EMAIL PROTECTED] The Netherlands | www.lingewoud.com pgpPFxJj4DrRP.pgp Description: PGP signature
Re: Strange behavior
Since VFAT is the most common filesystem used on USB-memory sticks, that is almost certainly the problem here. I can confirm that VFAT doesn't support changing ownership. So it behaves according to specification. VFAT doesn't have any notion of file ownership. (Guess why - it was invented by people that didn't hold with newfangled stuff like multi user systems. multi-tasking was hard enough, heh) All you can do is set the owner uid/gid at mount time. A very convenient way to do that is the 'user' mount option in fstab. Does not help if one user mounts the device and another wants to write there, though. HTH, Michael -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: Strange behavior
[...] [EMAIL PROTECTED]:~$ ls -la /sda1 total 4908 drwxr-xr-x 14 root root 16384 Jan 1 1970 . drwxr-xr-x 37 root root4096 Jan 11 16:19 .. -rwxr-xr-x 1 root root6148 Jan 10 13:56 .DS_Store drwxr-xr-x 2 root root2048 Nov 23 12:27 .Trash-swe . . . -rwxr-xr-x 1 root root 180 Jan 11 15:59 hints . . . [EMAIL PROTECTED]:~$ sudo mount /dev/sda1 /sda1 [EMAIL PROTECTED]:~$ sudo chown -R swe /sda1 chown: changing ownership of `/sda1': Operation not permitted chown: changing ownership of `/sda1/.Trashes': Operation not permitted chown: changing ownership of `/sda1/macintosh.pdf': Operation not permitted . . . chown: changing ownership of `/sda1/hints': Operation not permitted . . . That seems strange to me, what filesystem is it? The only thing I could imagine is that the filesystem doesn't support the operation - VFAT? [EMAIL PROTECTED]:~$ cat /sda1/hints bash: /sda1/hints: Permission denied [EMAIL PROTECTED]:~$ sudo cat /sda1/hints bash: /sda1/hints: Permission denied [EMAIL PROTECTED]:~$ su - Password: LinuxPPC:~# cat /sda1/hints The user swe has the same group as root (0). What's going on here? I think that's pretty much ok. sudo cat /sda1/hints will run cat as root, but /sda1/hints is interpreted by your shell, running as swe... And, as listed above, the group swe is a member of (0) doesn't have priveledges to write to the file. HTH, Michael signature.asc Description: Digital signature
Re: Strange behavior
I have the following Problem: [EMAIL PROTECTED]:~$ sudo mkdir /sda1 [EMAIL PROTECTED]:~$ sudo chown swe /sda1 [EMAIL PROTECTED]:~$ ls -la /sda1 total 8 drwxr-xr-x 2 swe root 4096 Jan 11 16:19 . drwxr-xr-x 37 root root 4096 Jan 11 16:19 .. As shown, /sda1 only has write permission for the owner of the file(directory in this case). [EMAIL PROTECTED]:~$ mount /dev/sda1 /sda1 mount: only root can do that [EMAIL PROTECTED]:~$ sudo mount /dev/sda1 /sda1 [EMAIL PROTECTED]:~$ ls -la /sda1 total 4908 drwxr-xr-x 14 root root 16384 Jan 1 1970 . drwxr-xr-x 37 root root4096 Jan 11 16:19 .. -rwxr-xr-x 1 root root6148 Jan 10 13:56 .DS_Store drwxr-xr-x 2 root root2048 Nov 23 12:27 .Trash-swe . . . -rwxr-xr-x 1 root root 180 Jan 11 15:59 hints . . . [EMAIL PROTECTED]:~$ sudo mount /dev/sda1 /sda1 [EMAIL PROTECTED]:~$ sudo chown -R swe /sda1 chown: changing ownership of `/sda1': Operation not permitted chown: changing ownership of `/sda1/.Trashes': Operation not permitted chown: changing ownership of `/sda1/macintosh.pdf': Operation not permitted . . . chown: changing ownership of `/sda1/hints': Operation not permitted . . . [EMAIL PROTECTED]:~$ cat /sda1/hints bash: /sda1/hints: Permission denied [EMAIL PROTECTED]:~$ sudo cat /sda1/hints bash: /sda1/hints: Permission denied [EMAIL PROTECTED]:~$ su - Password: LinuxPPC:~# cat /sda1/hints The user swe has the same group as root (0). What's going on here? Fritz I suspect `touch hello in /sda1 will also FAIL. What I can suggest is: $ chmod g+swx /sda1 then, as swe user, $ touch /sda1/hello should succeed...? Regards, TEH -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]