LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-23-2009, 08:31 AM   #1
avicalc
LQ Newbie
 
Registered: Jul 2009
Posts: 9

Rep: Reputation: 0
chown Problems


I'm running the Debian distribution on a single board computer and having some trouble using the chown command. Upon trying to use it, I always recieve the following error:

"chown: changing ownership of ‘***’: No such file or directory"

(where *** is some random character sequence). I have verified that the files I am trying to change ownership of do exist and the path is correct. I am running the command as root.

Any advice on how to fix this is appreciated.
 
Old 07-23-2009, 10:41 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Please do not obfuscate filenames as they may help determine what is going on.
Please post complete error output and the commandline.
Additionally, if you can, also run "strace -v" on chown and post output.
 
Old 07-23-2009, 01:23 PM   #3
avicalc
LQ Newbie
 
Registered: Jul 2009
Posts: 9

Original Poster
Rep: Reputation: 0
When trying perform chown on a file named "test", here's the output:

root@ts7800:root# ls -l
total 4
-rw-r--r-- 1 root root 10 Jul 23 10:47 test
root@ts7800:root# chown root test
chown: changing ownership of `\3510': No such file or directory
root@ts7800:root#


Here's the strace:

root@ts7800:root# strace -v chown root test
execve("/bin/chown", ["chown", "root", "test"], [/* 13 vars */]) = 0
brk(0) = 0x1a000
uname({sysname="Linux", nodename="ts7800", release="2.6.21-ts", version="#1 PREEMPT Fri Oct 10 10:20:42 MST 2008", machine="armv5tejl"}) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4001d000
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY) = 3
fstat64(3, {st_dev=makedev(254, 20), st_ino=41499, st_mode=S_IFREG|0644, st_nlink=1, st_uid=0, st_gid=0, st_blksize=4096, st_blocks=24, st_size=10000, st_atime=2009/07/23-11:20:08, st_mtime=2009/07/23-10:51:23, st_ctime=2009/07/23-10:51:23}) = 0
mmap2(NULL, 10000, PROT_READ, MAP_PRIVATE, 3, 0) = 0x4001e000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/lib/libc.so.6", O_RDONLY) = 3
read(3, "\177ELF\1\1\1a\0\0\0\0\0\0\0\0\3\0(\0\1\0\0\0000b\1\000"..., 512) = 512
fstat64(3, {st_dev=makedev(254, 20), st_ino=41343, st_mode=S_IFREG|0755, st_nlink=1, st_uid=0, st_gid=0, st_blksize=4096, st_blocks=2304, st_size=1177400, st_atime=2009/07/23-11:20:08, st_mtime=2009/01/05-04:31:26, st_ctime=2009/07/23-07:35:35}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40021000
mmap2(NULL, 1213256, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x40026000
mprotect(0x40142000, 28672, PROT_NONE) = 0
mmap2(0x40149000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x11b) = 0x40149000
mmap2(0x4014c000, 9032, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x4014c000
close(3) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40022000
syscall_983045(0x40021ba0, 0x40021ba0, 0x674, 0x40022278, 0x40025044, 0x40025044, 0x40025000, 0, 0x44, 0x1, 0xffff5200, 0xbeb9fb28, 0, 0xbeb9f7dc, 0x40011e24, 0x400020b4, 0x20000010, 0x40021ba0, 0xd184, 0x41890, 0x418b8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0) = 0
mprotect(0x40149000, 4096, PROT_READ) = 0
mprotect(0x40024000, 4096, PROT_READ) = 0
munmap(0x4001e000, 10000) = 0
brk(0) = 0x1a000
brk(0x3b000) = 0x3b000
socket(PF_FILE, SOCK_STREAM, 0) = 3
fcntl64(3, F_SETFL, O_RDWR|O_NONBLOCK) = 0
connect(3, {sa_family=AF_FILE, path="/var/run/nscd/socket"}, 112) = -1 ENOENT (No such file or directory)
close(3) = 0
socket(PF_FILE, SOCK_STREAM, 0) = 3
fcntl64(3, F_SETFL, O_RDWR|O_NONBLOCK) = 0
connect(3, {sa_family=AF_FILE, path="/var/run/nscd/socket"}, 112) = -1 ENOENT (No such file or directory)
close(3) = 0
open("/etc/ld.so.cache", O_RDONLY) = 3
fstat64(3, {st_dev=makedev(254, 20), st_ino=41499, st_mode=S_IFREG|0644, st_nlink=1, st_uid=0, st_gid=0, st_blksize=4096, st_blocks=24, st_size=10000, st_atime=2009/07/23-11:20:08, st_mtime=2009/07/23-10:51:23, st_ctime=2009/07/23-10:51:23}) = 0
mmap2(NULL, 10000, PROT_READ, MAP_PRIVATE, 3, 0) = 0x4001e000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/lib/libgcc_s.so.1", O_RDONLY) = 3
read(3, "\177ELF\1\1\1a\0\0\0\0\0\0\0\0\3\0(\0\1\0\0\0<\30\0\000"..., 512) = 512
fstat64(3, {st_dev=makedev(254, 20), st_ino=41214, st_mode=S_IFREG|0644, st_nlink=1, st_uid=0, st_gid=0, st_blksize=4096, st_blocks=72, st_size=34952, st_atime=2009/07/23-11:20:08, st_mtime=2009/01/04-10:32:35, st_ctime=2009/07/23-07:59:31}) = 0
mmap2(NULL, 66772, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x4014f000
mprotect(0x40158000, 28672, PROT_NONE) = 0
mmap2(0x4015f000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x8) = 0x4015f000
close(3) = 0
munmap(0x4001e000, 10000) = 0
open("/etc/nsswitch.conf", O_RDONLY) = 3
fstat64(3, {st_dev=makedev(254, 20), st_ino=13321, st_mode=S_IFREG|0644, st_nlink=1, st_uid=0, st_gid=0, st_blksize=4096, st_blocks=8, st_size=465, st_atime=2009/07/23-11:18:41, st_mtime=2007/10/19-16:31:03, st_ctime=2008/08/26-21:47:32}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4001e000
read(3, "# /etc/nsswitch.conf\n#\n# Example"..., 4096) = 465
read(3, "", 4096) = 0
close(3) = 0
munmap(0x4001e000, 4096) = 0
open("/etc/ld.so.cache", O_RDONLY) = 3
fstat64(3, {st_dev=makedev(254, 20), st_ino=41499, st_mode=S_IFREG|0644, st_nlink=1, st_uid=0, st_gid=0, st_blksize=4096, st_blocks=24, st_size=10000, st_atime=2009/07/23-11:20:08, st_mtime=2009/07/23-10:51:23, st_ctime=2009/07/23-10:51:23}) = 0
mmap2(NULL, 10000, PROT_READ, MAP_PRIVATE, 3, 0) = 0x4001e000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/lib/libnss_compat.so.2", O_RDONLY) = 3
read(3, "\177ELF\1\1\1a\0\0\0\0\0\0\0\0\3\0(\0\1\0\0\0\244\r\0\000"..., 512) = 512
fstat64(3, {st_dev=makedev(254, 20), st_ino=41341, st_mode=S_IFREG|0644, st_nlink=1, st_uid=0, st_gid=0, st_blksize=4096, st_blocks=56, st_size=26388, st_atime=2009/07/23-11:20:09, st_mtime=2009/01/05-04:31:25, st_ctime=2009/07/23-07:35:32}) = 0
mmap2(NULL, 57956, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x40160000
mprotect(0x40166000, 28672, PROT_NONE) = 0
mmap2(0x4016d000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x5) = 0x4016d000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/lib/libnsl.so.1", O_RDONLY) = 3
read(3, "\177ELF\1\1\1a\0\0\0\0\0\0\0\0\3\0(\0\1\0\0\00000\0\000"..., 512) = 512
fstat64(3, {st_dev=makedev(254, 20), st_ino=41330, st_mode=S_IFREG|0644, st_nlink=1, st_uid=0, st_gid=0, st_blksize=4096, st_blocks=152, st_size=75636, st_atime=2009/07/23-11:20:09, st_mtime=2009/01/05-04:31:22, st_ctime=2009/07/23-07:35:24}) = 0
mmap2(NULL, 116480, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x4016f000
mprotect(0x40181000, 28672, PROT_NONE) = 0
mmap2(0x40188000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x11) = 0x40188000
mmap2(0x4018a000, 5888, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x4018a000
close(3) = 0
mprotect(0x40188000, 4096, PROT_READ) = 0
mprotect(0x4016d000, 4096, PROT_READ) = 0
munmap(0x4001e000, 10000) = 0
open("/etc/ld.so.cache", O_RDONLY) = 3
fstat64(3, {st_dev=makedev(254, 20), st_ino=41499, st_mode=S_IFREG|0644, st_nlink=1, st_uid=0, st_gid=0, st_blksize=4096, st_blocks=24, st_size=10000, st_atime=2009/07/23-11:20:09, st_mtime=2009/07/23-10:51:23, st_ctime=2009/07/23-10:51:23}) = 0
mmap2(NULL, 10000, PROT_READ, MAP_PRIVATE, 3, 0) = 0x4001e000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/lib/libnss_nis.so.2", O_RDONLY) = 3
read(3, "\177ELF\1\1\1a\0\0\0\0\0\0\0\0\3\0(\0\1\0\0\0\240\30\0"..., 512) = 512
fstat64(3, {st_dev=makedev(254, 20), st_ino=41345, st_mode=S_IFREG|0644, st_nlink=1, st_uid=0, st_gid=0, st_blksize=4096, st_blocks=80, st_size=38516, st_atime=2009/07/23-11:20:09, st_mtime=2009/01/05-04:31:26, st_ctime=2009/07/23-07:35:35}) = 0
mmap2(NULL, 70252, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x4018c000
mprotect(0x40195000, 28672, PROT_NONE) = 0
mmap2(0x4019c000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x8) = 0x4019c000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/lib/libnss_files.so.2", O_RDONLY) = 3
read(3, "\177ELF\1\1\1a\0\0\0\0\0\0\0\0\3\0(\0\1\0\0\0p\30\0\000"..., 512) = 512
fstat64(3, {st_dev=makedev(254, 20), st_ino=41336, st_mode=S_IFREG|0644, st_nlink=1, st_uid=0, st_gid=0, st_blksize=4096, st_blocks=80, st_size=38484, st_atime=2009/07/23-11:20:09, st_mtime=2009/01/05-04:31:24, st_ctime=2009/07/23-07:35:32}) = 0
mmap2(NULL, 70348, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x4019e000
mprotect(0x401a7000, 28672, PROT_NONE) = 0
mmap2(0x401ae000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x8) = 0x401ae000
close(3) = 0
mprotect(0x401ae000, 4096, PROT_READ) = 0
mprotect(0x4019c000, 4096, PROT_READ) = 0
munmap(0x4001e000, 10000) = 0
open("/etc/passwd", O_RDONLY|0x80000) = 3
fcntl64(3, F_GETFD) = 0
fcntl64(3, F_SETFD, FD_CLOEXEC) = 0
_llseek(3, 0, [0], SEEK_CUR) = 0
fstat64(3, {st_dev=makedev(254, 20), st_ino=13324, st_mode=S_IFREG|0644, st_nlink=1, st_uid=0, st_gid=0, st_blksize=4096, st_blocks=8, st_size=1114, st_atime=2009/07/23-11:18:42, st_mtime=2007/10/19-16:31:04, st_ctime=2008/08/26-21:47:33}) = 0
mmap2(NULL, 1114, PROT_READ, MAP_SHARED, 3, 0) = 0x4001e000
_llseek(3, 1114, [1114], SEEK_SET) = 0
munmap(0x4001e000, 1114) = 0
close(3) = 0
ipc_subcall(0xffffff9c, 0x1cd84, 0x1cd24, 0x100) = 0
ipc_subcall(0xffffff9c, 0x1bb38, 0, 0xffffffff) = -1 ENOENT (No such file or directory)
write(2, "chown: ", 7chown: ) = 7
write(2, "changing ownership of `\\3510\'", 29changing ownership of `\3510') = 29
write(2, ": No such file or directory", 27: No such file or directory) = 27
write(2, "\n", 1
) = 1
close(1) = 0
close(2) = 0
io_submit(0x1, 0x1, 0x1100 <unfinished ... exit status 1>
root@ts7800:root#
 
Old 07-23-2009, 05:30 PM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Sorry, only related Debian ARM thing that turns up is Debian bug report #472982. Have a look and attach your report there?
 
  


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
Chown Problems tuftystick Linux - Newbie 9 01-12-2009 12:53 PM
using chown luusac Linux - General 8 08-22-2008 07:32 PM
chown problems Shay Linux - General 9 04-16-2007 02:34 PM
problems with chown and chgrp apax Linux - Software 6 11-03-2003 03:44 PM
chown problems phantom0810 Linux - General 11 04-26-2003 12:04 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:09 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