Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
User Accessing Windows Partitions [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
Wart
n00b
n00b


Joined: 03 Jun 2004
Posts: 66

PostPosted: Thu Mar 31, 2005 9:16 pm    Post subject: User Accessing Windows Partitions [SOLVED] Reply with quote

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
View user's profile Send private message
Petyr
Guru
Guru


Joined: 08 Jan 2003
Posts: 471
Location: San Diego, CA, USA

PostPosted: Thu Mar 31, 2005 9:20 pm    Post subject: Reply with quote

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
View user's profile Send private message
Wart
n00b
n00b


Joined: 03 Jun 2004
Posts: 66

PostPosted: Thu Mar 31, 2005 9:20 pm    Post subject: Reply with quote

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
View user's profile Send private message
Fabiolla
Apprentice
Apprentice


Joined: 04 Mar 2004
Posts: 277
Location: somewhere

PostPosted: Thu Mar 31, 2005 9:27 pm    Post subject: Reply with quote

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
View user's profile Send private message
Wart
n00b
n00b


Joined: 03 Jun 2004
Posts: 66

PostPosted: Thu Mar 31, 2005 9:33 pm    Post subject: Reply with quote

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
View user's profile Send private message
Wart
n00b
n00b


Joined: 03 Jun 2004
Posts: 66

PostPosted: Thu Mar 31, 2005 9:40 pm    Post subject: Reply with quote

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
View user's profile Send private message
Wart
n00b
n00b


Joined: 03 Jun 2004
Posts: 66

PostPosted: Sat Apr 02, 2005 6:13 pm    Post subject: Reply with quote

Anyone?
_________________
The success of Linux is based on the failure[s] of Windows
Back to top
View user's profile Send private message
Wart
n00b
n00b


Joined: 03 Jun 2004
Posts: 66

PostPosted: Mon Apr 04, 2005 6:20 pm    Post subject: Reply with quote

No one knows?
_________________
The success of Linux is based on the failure[s] of Windows
Back to top
View user's profile Send private message
AdShea
n00b
n00b


Joined: 10 Mar 2005
Posts: 62

PostPosted: Mon Apr 04, 2005 11:21 pm    Post subject: Reply with quote

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
View user's profile Send private message
Wart
n00b
n00b


Joined: 03 Jun 2004
Posts: 66

PostPosted: Wed Apr 06, 2005 7:51 pm    Post subject: Reply with quote

Thank you very much :)
_________________
The success of Linux is based on the failure[s] of Windows
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum