Slackware This Forum is for the discussion of Slackware Linux.
Notices
Welcome to
LinuxQuestions.org , a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free.
Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please
contact us . If you need to reset your password,
click here .
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a
virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month.
Click here for more info.
07-13-2004, 10:21 AM
#1
Member
Registered: Jun 2004
Location: Eden, NC
Distribution: Various
Posts: 267
Rep:
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.
07-13-2004, 10:32 AM
#2
LQ Guru
Registered: Jul 2003
Location: VA
Distribution: Slack 10.1
Posts: 2,194
Rep:
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
07-13-2004, 11:03 AM
#3
Member
Registered: Jun 2004
Location: Eden, NC
Distribution: Various
Posts: 267
Original Poster
Rep:
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
07-13-2004, 11:08 AM
#4
LQ Guru
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552
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
07-13-2004, 11:40 AM
#5
Member
Registered: Jun 2004
Location: Eden, NC
Distribution: Various
Posts: 267
Original Poster
Rep:
Ok the 0222 got it but it don't show any of the files. It is just a empty folder.
07-13-2004, 11:48 AM
#6
Member
Registered: Jul 2004
Location: Sherbrooke, Quebec, Canada, North America, World, Milky Way
Distribution: Gentoo
Posts: 103
Rep:
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.
07-14-2004, 01:48 PM
#7
Member
Registered: Jun 2004
Location: Eden, NC
Distribution: Various
Posts: 267
Original Poster
Rep:
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
07-14-2004, 01:55 PM
#8
LQ Guru
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552
Post your fstab
And is there a directory named windows at the root of your filesystem ? (/)
07-14-2004, 01:57 PM
#9
Member
Registered: Jun 2004
Location: Eden, NC
Distribution: Various
Posts: 267
Original Poster
Rep:
/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
07-14-2004, 01:57 PM
#10
Member
Registered: Jun 2004
Location: Eden, NC
Distribution: Various
Posts: 267
Original Poster
Rep:
When I was installing Slack I mount it as /windows
07-14-2004, 02:00 PM
#11
LQ Guru
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552
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 ?
07-14-2004, 02:14 PM
#12
Member
Registered: Jun 2004
Location: Eden, NC
Distribution: Various
Posts: 267
Original Poster
Rep:
/dev/hda1 /windows ntfs umask=0222 user,ro 0 0
it looks sorta like that with differnet spacing is that right.
07-14-2004, 02:18 PM
#13
LQ Guru
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552
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 ?
07-14-2004, 02:25 PM
#14
Member
Registered: Jun 2004
Location: Eden, NC
Distribution: Various
Posts: 267
Original Poster
Rep:
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 .
07-14-2004, 02:33 PM
#15
LQ Guru
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552
Hey please stop the joke
All times are GMT -5. The time now is 04:04 PM .
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know .
Latest Threads
LQ News