ownerships/permissions in sub-directories?
hello,
i wanna change the ownership of a folder so i typed: chown -R fadi:fadi /mnt/collection this changed all the subfolders in collection, but it didn't change the files permission !! can anybody help me plz :) |
files permission
hello,
i wanna change the ownership of a folder so i typed: chown -R fadi:fadi /mnt/collection this changed all the subfolders in collection, but it didn't change the files permission !! can anybody help me plz :) |
files permission
i used the -R option but it changed all the subfolder not the files included .... can anybody help :)
|
Please don't hijack threads, please don't drag up dead threads, and please don't post the same question multiple times
|
Please don't hijack threads, please don't drag up dead threads, and please don't post the same question multiple times
|
fadinader,
If ownership was changed by that command you can change permissions by doing this: user@host--$: chmod -R 775 /mnt/collection --------------- Next time if you need help you may start your own new post. Some people here do not welcome hitch-riding or thread-hijacking for often times this will increase confusion. Here I am not confused so I offer you a side-help. I hope this will help. Good luck. |
please post the command you used.
Any error messages? |
i used chown -R fadi /mnt/collection
- no errors - all subfolders were owned by fadi - but all files are still owned by root |
Files permission
i want to change the ownership of a folder and all things in it,
i typed "chown -R fadi /mnt/collection" - all the subfolders was owned by "fadi" - but all files are still owned by root user note that the permission of the folder is "drwxrwx---" all i want is to change all the files ownership to user "fadi" thanks |
If they're owned by root to begin with, use sudo
Code:
sudo chown -R fadi /mnt/collection |
i'm sry i did'nt know :)
an thank u for helping but i did this anywayz i started a new treat as u told me thanks |
yes i did this as root
|
Do you mean that the group owner is root, like:
fadi:root? If so, what is your group? How are your files displayed in the file listing, if you use ls -l? fadi:your_group? Whatever your group is, just use Code:
sudo chown -R fadi:your_group /mnt/collection |
root@debian:/mnt/collection/fadi# ls -l
total 836 drwxrwx--- 1 fadi fadi 4096 2009-08-22 16:44 4 linux -rw------- 1 root root 44277 2009-05-07 16:45 CI-2-hearing-aid.pdf -rw------- 1 root root 23629 2009-08-01 22:47 config.xml drwxrwx--- 1 fadi fadi 0 2009-08-20 13:53 Dave’s Tech Blog » Blog Archive » From The Linux Terminal To Shell Scripts_files -rw------- 1 root root 39146 2009-08-20 13:53 Dave’s Tech Blog » Blog Archive » From The Linux Terminal To Shell Scripts.html -rw------- 2 root root 299008 2009-05-25 19:27 Introduction to.doc -rw------- 1 root root 245760 2009-05-25 12:20 machines.tar -rw------- 1 root root 49152 2009-08-23 04:12 mej.doc drwxrwx--- 1 fadi fadi 0 2009-07-17 13:41 Music -rw------- 1 root root 66048 2009-05-08 22:22 Output with switch closed.doc drwxrwx--- 1 fadi fadi 8192 2009-04-25 15:25 Pictures drwxrwx--- 1 fadi fadi 40960 2009-08-07 20:18 Sources -rw------- 1 root root 23552 2008-06-18 13:07 Thumbs.db all folders have been changed all files does not changed |
Try
Code:
chmod -R 775 /mnt/collection |
i don't understand what do u mean by filesystem
and nothing was changed whan i typed chmod -R 775 /mnt/collection it says operation not supported next to each file. |
you are doing this as root?
Is it ntfs or fat32 ? Is this a windows partition? |
this will help us understand the filesystem
Code:
pwd; mount; df -h |
yes as root
ntfs no it is a normal drive |
Take a look at the thread you highjacked before, they offer a solution.
http://www.linuxquestions.org/questi...anging-600649/ |
debian:/mnt/collection# pwd; mount; df -h
/mnt/collection /dev/sda7 on / type ext3 (rw,errors=remount-ro) tmpfs on /lib/init/rw type tmpfs (rw,nosuid,mode=0755) proc on /proc type proc (rw,noexec,nosuid,nodev) sysfs on /sys type sysfs (rw,noexec,nosuid,nodev) procbususb on /proc/bus/usb type usbfs (rw) udev on /dev type tmpfs (rw,mode=0755) tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev) devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=620) /dev/sda1 on /mnt/xp type ntfs (rw) /dev/sda5 on /mnt/coptics type ntfs (rw) /dev/sda8 on /mnt/others type ntfs (rw) nfsd on /proc/fs/nfsd type nfsd (rw) /dev/sda6 on /mnt/collection type ntfs (rw) Filesystem Size Used Avail Use% Mounted on /dev/sda7 5.8G 2.1G 3.5G 38% / tmpfs 502M 0 502M 0% /lib/init/rw udev 10M 96K 10M 1% /dev tmpfs 502M 0 502M 0% /dev/shm /dev/sda1 20G 11G 9.4G 53% /mnt/xp /dev/sda5 45G 35G 11G 77% /mnt/coptics /dev/sda8 42G 35G 7.4G 83% /mnt/others /dev/sda6 37G 29G 8.6G 77% /mnt/collection |
^
Code:
/dev/sda6 on /mnt/collection type ntfs (rw) maybe since it is mounted by root all the files assume the ownership of root ? who owns /mnt/collection ? maybe: Code:
umount /mnt/collection |
maybe it's right but why i couldn't change the files ownership ?
|
the problem is in the ntfs fromat ?
|
fadi own all folder
but root own all files |
fadi owns all folders
root owns all files |
Take a look at
http://www.linux-ntfs.org/doku.php?i...an_ntfs_volume |
nothing has changed
|
Quote:
|
thanks alot to all
i installed the ntfs-3g package and it works normally |
You can mark the thread as solved if you want.
|
I've cleaned up your mess and merged the three hi-jacked threads posts
with the one you started. Please don't double-post, please don't hi-jack others threads. Both is considered very rude behaviour on these boards. Cheers, Tink |
All times are GMT -5. The time now is 11:21 AM. |