LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-15-2008, 02:11 AM   #1
presarioch
LQ Newbie
 
Registered: Jun 2008
Posts: 21

Rep: Reputation: 15
chown: Operation not permitted


I login to my NAS using ssh as root.
I've mounted a USBHDD to a folder called Downloads

0 lrwxrwxrwx 1 root root 20 Jun 15 14:06 Downloads/
44 drwxr-xrwx 481 admin admin 24576 Jun 15 02:04 Music/
8 drwx---rwx 11 admin admin 4096 Jun 15 14:12 Personal/

I tried to chown for the folder "Downloads" but it shows
chown: /raid/Downloads: Operation not permitted

I am already the root user and I want to change the ownership to admin/everyone since this HDD is for downloading and BTing.

Can any bro teach me (step by step is better since i am really a newbie)

This is the result of "uname -a" since I dont know the version of my linux.
Linux NAS 2.6.21 #1 Fri Apr 11 10:34:23 CST 2008 ppc unknown

Can anyone help me???
THANKSSSSSSSSSSSSSSSS a lot!

Hans
 
Old 06-15-2008, 02:37 AM   #2
snowtigger
Member
 
Registered: Mar 2005
Location: england
Distribution: slackware, win2k
Posts: 364

Rep: Reputation: 35
ok, a you little vague here,

you see here the lrwxrwxrwx bit for "Downloads/".
That tells you what permissions and some other stuff is set.
It says,
Code:
l = i'm a link to somewhere else
r = the owner can read me
w = the owner can write to me
x = the owner can execute me
r = the group can read me
w = the group can write to me
x = the group can execute me
r = everybody else can read me
w = everybody else can write to me
x = everybody else can execute me
So why you ask can't you "chown" or "chmod" me, well..... it's cause i'm a link, all standard links are created like me. What you need to do is find where i point to. Then see what permissions are set to were i point and change them.

Try running "ls -alh" in the directory where i am, then it should show you where i point to.

oh, and if my "l" was a "d" then i'd be a directory.

and another oh, tis not really a question for the networking forum, please use linux general for something like this.


Last edited by snowtigger; 06-15-2008 at 02:49 AM.
 
Old 06-15-2008, 02:49 AM   #3
presarioch
LQ Newbie
 
Registered: Jun 2008
Posts: 21

Original Poster
Rep: Reputation: 15
Ohhhhhhhhh

I get it. Thanks bros.

But it raised another question for me......
It's that
This folder is mounted for a external USB 120GB HDD which will be used to bt on my nas. When I start the BT software, there's no connected peers found. But If i use other drives on the nas for bting, it's ok. Do you know what's the problem is??? I just thinking of the permission problem but you've shown me that it isn't. Can you or any bros teach me / help me to solve it??????


THANKS A LOTTTTT
 
Old 06-15-2008, 03:06 AM   #4
snowtigger
Member
 
Registered: Mar 2005
Location: england
Distribution: slackware, win2k
Posts: 364

Rep: Reputation: 35
hummmm i don't know anything about BT stuff. It does sound like its just not connecting right.

Or it could still be a problem with being able to write to the drive. Although the links says everybody can read/write that does not mean you have the right permissions on the mount point.

A little example, this is part of the output from "ls -alh" i was in /usr at the time.
Code:
lrwxrwxrwx   1 root root    5 2008-03-30 12:07 X11 -> X11R6
It says there is a link called "X11" which point to the directory called "X11R6" in /usr. The output for "ls -alh" for "X11R6" is
Code:
drwxr-xr-x   2 root root   48 2008-01-27 19:57 X11R6
As you can see for that the group and everybody settings are saying that they can't write to "X11R6"

 
Old 06-15-2008, 03:24 AM   #5
presarioch
LQ Newbie
 
Registered: Jun 2008
Posts: 21

Original Poster
Rep: Reputation: 15
ls -ls
32 drwxrwxrwx 2 nobody nogroup 32768 Jun 14 22:36 Network Trash Folder/
32 drwxrwxrwx 2 nobody nogroup 32768 Jun 14 22:36 Temporary Items/
32 drwxrwxrwx 6 nobody nogroup 32768 Jun 15 15:42 bt/
32 drwxrwxrwx 2 nobody nogroup 32768 Jun 15 14:13 http/

It's the linked folder.

It's seems not the permission, but i really dont know much.
Is there any related issues?
Thanks
 
Old 06-15-2008, 03:25 AM   #6
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
What filesystem does this drive have? FAT32 for example won't take unix permissions
 
Old 06-15-2008, 04:03 AM   #7
presarioch
LQ Newbie
 
Registered: Jun 2008
Posts: 21

Original Poster
Rep: Reputation: 15
ohhhh
u're right. It's a fat file system.

But from the above post, the permission is set to all rwx. Why the bt peers still cannot read and write the disk?

thanks bros
 
Old 06-15-2008, 04:29 AM   #8
snowtigger
Member
 
Registered: Mar 2005
Location: england
Distribution: slackware, win2k
Posts: 364

Rep: Reputation: 35
our trusty old friend mr. FAT32.
The default way of mounting a FAT32 formatted device is that it only gives root access. But i'm wondering why it has only done it to this disk when you say you have plugged others in before.

But anyways, if you would let us see the out put of "mount" and the contents of "fstab" then i'm sure we can sort this out.

 
Old 06-15-2008, 04:47 AM   #9
presarioch
LQ Newbie
 
Registered: Jun 2008
Posts: 21

Original Poster
Rep: Reputation: 15
sure!

/dev/ram0 / ext2 defaults 1 1
tmpfs /var tmpfs defaults 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
proc /proc proc defaults 0 0
none /sys sysfs defaults 0 0

It's that.

Then how can I format my external usbhdd into ext3 since my nas do not have the command mkfs. Instead, there's a command called mkfs.xfs. When I type mkfs.xfs --help, it shows the following:

no device name given in argument list
Usage: mkfs.xfs
/* blocksize */ [-b log=n|size=num]
/* data subvol */ [-d agcount=n,agsize=n,file,name=xxx,size=num,
(sunit=value,swidth=value|su=num,sw=num),
sectlog=n|sectsize=num,unwritten=0|1]
/* inode size */ [-i log=n|perblock=n|size=num,maxpct=n,attr=0|1|2]
/* log subvol */ [-l agnum=n,internal,size=num,logdev=xxx,version=n
sunit=value|su=num,sectlog=n|sectsize=num,
lazy-count=0|1]
/* label */ [-L label (maximum 12 characters)]
/* naming */ [-n log=n|size=num,version=n]
/* prototype file */ [-p fname]
/* quiet */ [-q]
/* realtime subvol */ [-r extsize=num,size=num,rtdev=xxx]
/* sectorsize */ [-s log=n|size=num]
/* version */ [-V]
devicename
<devicename> is required unless -d name=xxx is given.
<num> is xxx (bytes), xxxs (sectors), xxxb (fs blocks), xxxk (xxx KiB),
xxxm (xxx MiB), xxxg (xxx GiB), xxxt (xxx TiB) or xxxp (xxx PiB).
<value> is xxx (512 byte blocks).

How can I format my disk into ext3?

Thanks bros
 
Old 06-15-2008, 05:02 AM   #10
snowtigger
Member
 
Registered: Mar 2005
Location: england
Distribution: slackware, win2k
Posts: 364

Rep: Reputation: 35
Its likely that your NAS doesn't have the programs to format ext3. Maybe it only can do xfs, which is a good alternative if not better, but thats another debate altogether.
By all means use xfs.

mkfs.xfs gave you that output because you didn't tell it what device to format, and example would be "mkfs.xfs /dev/hda". But you need to tell it the right device, otherwise you may format another drive in your system! If we can see the output of "mount" we can possible find out which device it is calling itself. Other than that you will have to look through the system logs to find it out. But lets see "mount" before we go diving through the logs.

By the way what make and model of NAS is this.

 
Old 06-16-2008, 01:01 PM   #11
presarioch
LQ Newbie
 
Registered: Jun 2008
Posts: 21

Original Poster
Rep: Reputation: 15
my NAS is Thecus N3200, any idea?
 
Old 06-17-2008, 10:48 AM   #12
presarioch
LQ Newbie
 
Registered: Jun 2008
Posts: 21

Original Poster
Rep: Reputation: 15
Disk /dev/sdh: 120.0 GB, 120034123776 bytes
255 heads, 63 sectors/track, 14593 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sdh1 1 14594 117220792+ b Win95 FAT32

N3200:~$ mkfs.xfs /dev/sdh1 -f

meta-data=/dev/sdh1 isize=256 agcount=16, agsize=1831574 blks
= sectsz=512 attr=0
data = bsize=4096 blocks=29305184, imaxpct=25
= sunit=0 swidth=0 blks, unwritten=1
naming =version 2 bsize=4096
log =internal log bsize=4096 blocks=14309, version=1
= sectsz=512 sunit=0 blks, lazy-count=0
realtime =none extsz=4096 blocks=0, rtextents=0

Disk /dev/sdh: 120.0 GB, 120034123776 bytes

255 heads, 63 sectors/track, 14593 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sdh1 1 14594 117220792+ b Win95 FAT32

=========================================================================

I got nothing changed after I mkfs.xfs /dev/sdh1 -f.

how can i format the disk??????
please help......3
 
Old 06-21-2008, 07:00 AM   #13
snowtigger
Member
 
Registered: Mar 2005
Location: england
Distribution: slackware, win2k
Posts: 364

Rep: Reputation: 35
hello again,

well after finding sometime to read about this device i have found the following out.

It definitely uses Linux, but its not any publicly distribution. Its something Thecus have brewed up themselves. The source is a available for all the GPL bits but i think the have some closed source bits in the too.

And from reading the manual it seems that any eSATA or USB disk needs to be formatted in either FAT32 or NTFS. It can read and write to FAT32, but only read from NTFS. As for the permission issues your having, as long as you went through their web interface to setup the ACLs then it should be working just fine.

Oh and it does say you need to format any eSATA or USB drives on another computer first.

Other than that i can't tell you much else cause i don't have one here to play with.

 
Old 06-22-2008, 03:28 PM   #14
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 66
Moved: This thread is more suitable in Linux Newbie and has been moved accordingly to help your thread/question get the exposure it deserves.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Operation not permitted jakkals Linux - General 3 09-26-2005 07:30 PM
su - operation not permitted jrtayloriv Linux - Newbie 2 06-09-2005 09:27 PM
operation not permitted jamaso Slackware 2 05-08-2004 05:55 AM
Operation not Permitted as root? Godboo Linux - Newbie 4 02-17-2004 08:42 AM
Operation not permitted FrozenShadow23 Linux - Newbie 6 10-05-2003 05:13 PM


All times are GMT -5. The time now is 10:32 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration