LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 07-13-2004, 10:21 AM   #1
AGilley007
Member
 
Registered: Jun 2004
Location: Eden, NC
Distribution: Various
Posts: 267

Rep: Reputation: 30
viewing windows files as non root


is their a way I can do this I tried loging in as root and changing the permisions and it would not let me.
 
Old 07-13-2004, 10:32 AM   #2
aaa
LQ Guru
 
Registered: Jul 2003
Location: VA
Distribution: Slack 10.1
Posts: 2,194

Rep: Reputation: 47
In /etc/fstab put the umask=0 option:
Before:
/dev/hda1 /mnt/win vfat defaults 0 0
After:
/dev/hda1 /mnt/win vfat umask=0,defaults 0 0
 
Old 07-13-2004, 11:03 AM   #3
AGilley007
Member
 
Registered: Jun 2004
Location: Eden, NC
Distribution: Various
Posts: 267

Original Poster
Rep: Reputation: 30
Like this?

/dev/hda2 swap swap defaults 0 0
/dev/hda3 / ext2 defaults 1 1
/dev/hda1 /windows ntfs umask=0 ro 1 0
/dev/cdrom /mnt/cdrom iso9660 noauto,owner,ro 0 0
/dev/fd0 /mnt/floppy auto noauto,owner 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
proc /proc proc defaults 0 0
 
Old 07-13-2004, 11:08 AM   #4
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872
I would use 0222 as file can only be read-only with ntfs partition
(0777 - 0222 = 0555 = r-xr-xr-x = read, execute for all)

So in fstab :
/dev/hda1 /windows ntfs umask=0222,ro 0 0
 
Old 07-13-2004, 11:40 AM   #5
AGilley007
Member
 
Registered: Jun 2004
Location: Eden, NC
Distribution: Various
Posts: 267

Original Poster
Rep: Reputation: 30
Ok the 0222 got it but it don't show any of the files. It is just a empty folder.
 
Old 07-13-2004, 11:48 AM   #6
netmask
Member
 
Registered: Jul 2004
Location: Sherbrooke, Quebec, Canada, North America, World, Milky Way
Distribution: Gentoo
Posts: 103

Rep: Reputation: 16
Quote:
Originally posted by AGilley007
Ok the 0222 got it but it don't show any of the files. It is just a empty folder.
Is the drive mounted? :P

Type "mount" and see.
 
Old 07-14-2004, 01:48 PM   #7
AGilley007
Member
 
Registered: Jun 2004
Location: Eden, NC
Distribution: Various
Posts: 267

Original Poster
Rep: Reputation: 30
Ok I can see it as as non root but i get this error when I try to mount it

alan@dhcppc1:~$ mount /windows
[mntent]: line 3 in /etc/fstab is bad
mount: can't find /windows in /etc/fstab or /etc/mtab
 
Old 07-14-2004, 01:55 PM   #8
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872
Post your fstab And is there a directory named windows at the root of your filesystem ? (/)
 
Old 07-14-2004, 01:57 PM   #9
AGilley007
Member
 
Registered: Jun 2004
Location: Eden, NC
Distribution: Various
Posts: 267

Original Poster
Rep: Reputation: 30
/dev/hda2 swap swap defaults 0 0
/dev/hda3 / ext2 defaults 1 1
/dev/hda1 /windows ntfs umask=0222 ro 1 0
/dev/cdrom /mnt/cdrom iso9660 noauto,owner,ro 0 0
/dev/fd0 /mnt/floppy auto noauto,owner 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
proc /proc proc defaults 0 0
 
Old 07-14-2004, 01:57 PM   #10
AGilley007
Member
 
Registered: Jun 2004
Location: Eden, NC
Distribution: Various
Posts: 267

Original Poster
Rep: Reputation: 30
When I was installing Slack I mount it as /windows
 
Old 07-14-2004, 02:00 PM   #11
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872
Change :
/dev/hda1 /windows ntfs umask=0222 ro 1 0
to :
/dev/hda1 /windows ntfs umask=0222,user,ro 0 0

And what is your output for ls /windows ?
 
Old 07-14-2004, 02:14 PM   #12
AGilley007
Member
 
Registered: Jun 2004
Location: Eden, NC
Distribution: Various
Posts: 267

Original Poster
Rep: Reputation: 30
/dev/hda1 /windows ntfs umask=0222 user,ro 0 0

it looks sorta like that with differnet spacing is that right.
 
Old 07-14-2004, 02:18 PM   #13
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872
Please look carefully :

change :
/dev/hda1 /windows ntfs umask=0222 user,ro 0 0

to :
/dev/hda1 /windows ntfs umask=0222,user,ro 0 0

You noticed the ',' right ?
 
Old 07-14-2004, 02:25 PM   #14
AGilley007
Member
 
Registered: Jun 2004
Location: Eden, NC
Distribution: Various
Posts: 267

Original Poster
Rep: Reputation: 30
Yes I noticed and changed it and it still does not work. It looks like this.
/dev/hda1 /windows ntfs umask=0222,user ro 0 0

Last edited by AGilley007; 07-14-2004 at 02:29 PM.
 
Old 07-14-2004, 02:33 PM   #15
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872
Hey please stop the joke
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
viewing the linux files in windows kashan Linux - Newbie 4 09-20-2004 10:50 AM
Viewing Windows Files AGilley007 Mandriva 4 07-13-2004 08:55 PM
Viewing Windows Files from Linux nobyone Linux - Newbie 4 03-26-2004 11:03 AM
Viewing files while running Konqueror as root seanfitz Linux - Software 1 01-22-2004 08:57 AM
viewing windows files square317 Linux - General 3 12-16-2000 06:39 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 04:04 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration