Posts: 955
	Threads: 36
	Joined: Sep 2008
	
Reputation: 
0
	 
	
	
		
Worked okay for me without the -t option (and the umask option).
 
What do you see if you type in "mount" or "ls -ald /backups" - look at the permissions of that first.
	
	
	
	
	
 
 
	
	
	
		
	Posts: 10
	Threads: 1
	Joined: Oct 2010
	
Reputation: 
0
	 
	
	
		
If I type "ls -ald /backup" the result is "drwxr-xr-x 7 root root 32768 27 ott 13:30 /backup"
 
user and group is root, but should be admin  o_Oo_O
 
I've try:
 
#umount -l /backup/
#mkdir /backup
#chown admin:admin /backup
#mount -t vfat -o rw,umask=0000,uid=501,gid=501 /dev/sdb1 /backup
 
but if I type "ls -ald /backup" the result is "drwxr-xr-x 7 root root 32768 27 ott 13:30 /backup"
 
 [img]<___base_url___>/uploads/emoticons/default_mad.gif[/img]o_O[img]<___base_url___>/uploads/emoticons/default_ohmy.png[/img]
	
	
	
	
	
 
 
	
	
	
		
	Posts: 955
	Threads: 36
	Joined: Sep 2008
	
Reputation: 
0
	 
	
	
		
It looks like the "umount -l" is not working, or rather, not actually dismounting the volume.
 
You shouldn't need to use "mkdir" to create the directory if it already exists.
 
Try the following:
 
"mount" - check that it isn't mounted.
"ls -ald /backup" - check the permissions
"mount -o uid=501,gid=501 /dev/sdb1 /backup" - should mount the USB pen
"ls -ald /backup" - check the ownership again. This should now reflect "admin:admin".
	
	
	
	
	
 
 
	
	
	
		
	Posts: 10
	Threads: 1
	Joined: Oct 2010
	
Reputation: 
0
	 
	
		
		
		2010-10-31, 05:04 PM 
(This post was last modified: 2010-11-01, 05:20 PM by Dungeon-Dave.)
		
	 
	
		
Hi Dungeon-Dave,
 
I've type thath commands:
 
#mount (to check if /backup is mounted)
#rm -rf backup (for delete the backup directory)
#mkdir /backup;chown admin:admin /backup (to create the backup directory)
#ls -ald /backup (for check user and group of backup directory)
#mount -o uid=501,gid=501 /dev/sdb1 /backup (for mount the external HDD)
#ls -ald /backup
 
the final result: drwxr-xr-x 7 root root 32768 27 ott 13:30 /backup
 
 o_Oo_Oo_Oo_O
	
	
	
	
	
 
 
	
	
	
		
	Posts: 955
	Threads: 36
	Joined: Sep 2008
	
Reputation: 
0
	 
	
	
		Can you post the output of your "mount" and "df" commands at all?