|
|
Question : Accessing and sharing out my NTFS drives
|
|
I recently over-wrote XP Pro with Ubuntu 6.06 on my 30gb primary HD. I've also got a 120gb NTFS IDE drive and a 200gb NTFS SATA drive that it recognizes, but i can't browse ("folder contents cannot be displayed - don't have permission") ...
I'd prefer not to go back to windows, and would like to know how to : - get access to those drives - share them out on the network - cmd line method preferred
Thanks
|
Answer : Accessing and sharing out my NTFS drives
|
|
If you're not sure, then you can type this:
$ ls -l /path/to/windows
and you'll see a listing like this:
total 4 drwsrwsr-x 4 kyle users 216 2006-08-28 18:37 H drwsrwsr-x 3 kyle users 280 2006-08-01 17:28 I drwsrwsr-x 6 kyle users 640 2006-08-28 18:53 J drwsrwsr-x 4 kyle users 304 2006-08-28 18:46 K
As you can see, i own these files -- that's the "kyle" -- and also anyone in the User group can use them as part of my group. The mode of the files for me is "rws" -- which means i can read them, write them, and execute them, and in this folder -- which is shared amongst a lot of people -- if i own the file then nobody else can erase it (the "s"). The next three letters are rws, and indicate the same permissions to read, write, and excute for members of the users' group. the last three -- r-x -- indicate that everyone else can only see or execute them, not write to them.
Your files are probably mounted like this:
drwx------ 1 root root 4096 2006-06-24 23:05 install -rw------- 1 root root 0 2006-06-24 22:26 IO.SYS drwx------ 1 root root 4096 2006-06-24 22:40 j2sdk1.4.2_06 -rw------- 1 root root 0 2006-06-24 22:26 MSDOS.SYS
The rw says that only the owner of the file can read it or write to it, and the root:root means that root is the owner.
If you're trying to access the files as a normal user, you won't be able to read them. You need to become root.
If you want to read them as a normal user, you'll need to change those permissions.
Yes, that would be:
Open a desktop terminal, or hit Ctrl-Alt-F1 to go to command line termina, and login as root.
Then do the chown i suggested above (although you might want to consider changing the "group" owners to "users"):
$ chown yourusername:yourusername -R /path/to/windows
Then, if you want, you can also do the chmod winands suggested, although it shouldn't be necessary:
$ chmod 773 -R /path/to/windows
My guess is that your directories are mounted as root:root, you're logging in under a username, and the system won't let you browse root-owned files.
|
|
|
|
|