View previous topic :: View next topic |
Author |
Message |
Wart n00b
Joined: 03 Jun 2004 Posts: 66
|
Posted: Thu Mar 31, 2005 9:16 pm Post subject: User Accessing Windows Partitions [SOLVED] |
|
|
I've created a user, but that use is unable to access any folders in /mnt..
i.e..
Code: | bash-2.05b$ dir
cdrom files floppy media windows
bash-2.05b$ cd windows
bash: cd: windows: Permission denied
bash-2.05b$ cd files
bash: cd: files: Permission denied
bash-2.05b$ cd floppy
bash: cd: floppy: Permission denied
bash-2.05b$ cd cdrom
bash: cd: cdrom: Permission denied
bash-2.05b$ cd media
bash: cd: media: Permission denied
bash-2.05b$
|
I sorta figured it was a groups problem, but if it is, I sure haven't been able to figure it out..
Code: | bash-2.05b$ groups
bin sys adm tty disk wheel floppy audio cdrom games usb users portage
bash-2.05b$
|
I realize that some of those need to go away for the user.. i.e sys and adm, but I was trying everything Any advice? _________________ The success of Linux is based on the failure[s] of Windows
Last edited by Wart on Wed Apr 06, 2005 7:51 pm; edited 1 time in total |
|
Back to top |
|
|
Petyr Guru
Joined: 08 Jan 2003 Posts: 471 Location: San Diego, CA, USA
|
Posted: Thu Mar 31, 2005 9:20 pm Post subject: |
|
|
what are the permission flags on the windows directory?
might just want to fix that as root, and that should give the user access to it.
Regards,
Petyr |
|
Back to top |
|
|
Wart n00b
Joined: 03 Jun 2004 Posts: 66
|
Posted: Thu Mar 31, 2005 9:20 pm Post subject: |
|
|
How do I check them? Can I chmod a directory? _________________ The success of Linux is based on the failure[s] of Windows |
|
Back to top |
|
|
Fabiolla Apprentice
Joined: 04 Mar 2004 Posts: 277 Location: somewhere
|
Posted: Thu Mar 31, 2005 9:27 pm Post subject: |
|
|
Hi,
also take care, if the windows filesystem is ntfs.
From man mount - section ntfs
Quote: |
By default, the files are owned by root and not readable by somebody else.
|
greetings |
|
Back to top |
|
|
Wart n00b
Joined: 03 Jun 2004 Posts: 66
|
Posted: Thu Mar 31, 2005 9:33 pm Post subject: |
|
|
The windows folder is ntfs, which is mostly fine.. Nothing really important there..
The files folder and the media folder are both FAT32 partitions, so are linux friendly Just need to figure out how to r/w then as a user. _________________ The success of Linux is based on the failure[s] of Windows |
|
Back to top |
|
|
Wart n00b
Joined: 03 Jun 2004 Posts: 66
|
Posted: Thu Mar 31, 2005 9:40 pm Post subject: |
|
|
Code: | bash-2.05b$ mount -l
/dev/hda3 on / type reiserfs (rw,noatime)
none on /dev type devfs (rw)
none on /proc type proc (rw)
none on /sys type sysfs (rw)
none on /dev/pts type devpts (rw)
/dev/hdb1 on /mnt/windows type ntfs (rw)
/dev/hdb6 on /mnt/media type vfat (rw,noexec,nosuid,nodev)
/dev/hdb5 on /mnt/files type vfat (rw,noexec,nosuid,nodev)
none on /dev/shm type tmpfs (rw)
none on /proc/bus/usb type usbfs (rw)
|
Here's the corresponding part of my fstab
Code: | #Mount the windows partitions
/dev/hdb1 /mnt/windows auto
/dev/hdb6 /mnt/media auto user 0 0
/dev/hdb5 /mnt/files auto user 0 0
|
_________________ The success of Linux is based on the failure[s] of Windows |
|
Back to top |
|
|
Wart n00b
Joined: 03 Jun 2004 Posts: 66
|
Posted: Sat Apr 02, 2005 6:13 pm Post subject: |
|
|
Anyone? _________________ The success of Linux is based on the failure[s] of Windows |
|
Back to top |
|
|
Wart n00b
Joined: 03 Jun 2004 Posts: 66
|
Posted: Mon Apr 04, 2005 6:20 pm Post subject: |
|
|
No one knows? _________________ The success of Linux is based on the failure[s] of Windows |
|
Back to top |
|
|
AdShea n00b
Joined: 10 Mar 2005 Posts: 62
|
Posted: Mon Apr 04, 2005 11:21 pm Post subject: |
|
|
You need to put a umask in your fstab. Here's what I have to mount my windows partition.
Code: |
/dev/hda1 /mnt/c ntfs ro,exec,users,gid=6,umask=0227 0 0
|
This allows the disk group (gid=6) to access (root still owns), sets permissions to r-xr-x---, allows users to mount and unmount, and allows execution.
Hope that helps |
|
Back to top |
|
|
Wart n00b
Joined: 03 Jun 2004 Posts: 66
|
Posted: Wed Apr 06, 2005 7:51 pm Post subject: |
|
|
Thank you very much _________________ The success of Linux is based on the failure[s] of Windows |
|
Back to top |
|
|
|