DSM-G600, DNS-3xx and NSA-220 Hack Forum

Unfortunately no one can be told what fun_plug is - you have to see it for yourself.

You are not logged in.

Announcement

#1 2010-02-20 06:50:20

abubin
Member
Registered: 2007-11-01
Posts: 59

permissions problem with cifs mount

I have a linux fedora 12 system where I mounted the dns323 using command as below:

mount -t cifs //192.168.1.32/volume_1 /mnt/mynas -o user=myuser,pass=mypass,iocharset=utf8,rw


I can read and write files fine. Can create files and delete files. But problem is, I am unable to change permissions and ownership.

When I try to "chmod 700 myfiles", I get error :

chmod: changing permissions of `myfiles': Permission denied

Anyone know how to fix this problem?

Another that might be related is, when i see the files from my mount point, I can see the files with user 501 and group 501. But when I see the file from telnet, i can see the files user as root and group root.

Any idea?

Offline

 

#2 2010-03-03 16:56:45

switch10
Member
Registered: 2010-02-25
Posts: 27

Re: permissions problem with cifs mount

you have to SSH in as root.  First enable SSH (and optionally disable telnet)

Code:

 ssh root@192.168.1.32

put in your password, then try "chmod 700 your_file"

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB