LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-03-2009, 07:01 AM   #1
SolitudeSensus
Member
 
Registered: May 2009
Posts: 73

Rep: Reputation: 15
Smile Enter into window's drive


When I log In as root, I can enter /fat-c (i.e NTFS format drive), but I want to enter inside it logging in as user also. How to do that?

I'm using both XP and SLACKWARE.
 
Old 07-03-2009, 07:05 AM   #2
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Gurgaon, India
Distribution: Cent OS 6/7
Posts: 4,631

Rep: Reputation: Disabled
The mount point /fat-c where you mount windows drive may not have proper permissions set for normal user to read write or execute. As root change the permission for the mount point but beware of what you are doing.
 
Old 07-03-2009, 07:06 AM   #3
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
Are you talking about entering the drive to read and write files? You don't need to do any extra login for that...

Please give some more detail on what you are trying to do.
 
Old 07-03-2009, 07:36 AM   #4
vonbiber
Member
 
Registered: Apr 2009
Distribution: slackware 14.1 64-bit, slackware 14.2 64-bit, SystemRescueCD
Posts: 533

Rep: Reputation: 129Reputation: 129
Quote:
Originally Posted by SolitudeSensus View Post
When I log In as root, I can enter /fat-c (i.e NTFS format drive), but I want to enter inside it logging in as user also. How to do that?

I'm using both XP and SLACKWARE.
can you paste your entry for the windows partition in
/etc/fstab? Just run this, then copy the output:

grep '/fat\-c' /etc/fstab

also, paste the contents of the file /etc/group

cat /etc/group

###################
there are certain options you need in order for an ordinary user
to mount and access a device
and the user must be added to certain groups (such as disk, ...)
 
Old 07-03-2009, 07:36 AM   #5
SolitudeSensus
Member
 
Registered: May 2009
Posts: 73

Original Poster
Rep: Reputation: 15
Post Is there any risk?

Yes, I want to enter inside it for reading and writing.
I can do it logging in as root, but now I want to do it by logging in as normal user also.
I don't want other users for doing this. Only for the user solitude (this is the user account that I'm using).

Is it risky?
 
Old 07-03-2009, 07:49 AM   #6
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Gurgaon, India
Distribution: Cent OS 6/7
Posts: 4,631

Rep: Reputation: Disabled
Change the permissions for the mount point or else change the ownership. But do it carefully. I hope you know what you are doing. It shouldnt be a problem writing to a ntfs drive as such though.
 
Old 07-03-2009, 08:04 AM   #7
SolitudeSensus
Member
 
Registered: May 2009
Posts: 73

Original Poster
Rep: Reputation: 15
Smile confused?



Can anybody suggest me clearly, is there any risk for doing this.
Is there any side effects.

And how to make it accessible. Please somebody provide me step by step
guide.

I'm totally confused
 
Old 07-03-2009, 08:14 PM   #8
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
Most Linux distros will read and write to NTFS with no problem. As long as you have your data backed up, this is not any riskier than any other routine operation.

Whereever your NTFS partition is mounted, do "ls -l" from a terminal. This will show you the existing permissions. Here is an example:
drwxr-xr-x. 2 mherring mherring 4096 2009-06-22 15:38 Pictures

This says that the directory is owned by mherring and assigned to a group with the same name. The owner has full permissions, but everyone else has only read and execute. Suppose I wanted to give write permission to the group. I would issue one of the following commands:
chmod g+w Pictures
chmod 775 Pictures

The change the directory (mountpoint) AND all the contents, add the -R option.

For the details of this syntax, look at "man chmod"

There should also be a GUI control panel for this somewhere in your menus.
 
Old 07-04-2009, 05:41 AM   #9
vonbiber
Member
 
Registered: Apr 2009
Distribution: slackware 14.1 64-bit, slackware 14.2 64-bit, SystemRescueCD
Posts: 533

Rep: Reputation: 129Reputation: 129
Quote:
Originally Posted by SolitudeSensus View Post
Yes, I want to enter inside it for reading and writing.
I can do it logging in as root, but now I want to do it by logging in as normal user also.
I don't want other users for doing this. Only for the user solitude (this is the user account that I'm using).

Is it risky?
if you want 'solitude' user to be able to mount
you need to
1. add this user to certain groups such as 'disk', etc.
to do that,

edit (as root) the file (before you start editing make
a backup copy: cd /etc; cp group _group)

/etc/group

Look at the lines that start with

disk:
floppy:
cdrom:
plugdev:

if you want solitude to be able to mount a disk partition,
..., you must add solitude at the end of each of these lines
after the last colon
If there's already an entry like probably root precede
solitude with a comma (no spaces)
so for instance
the original disk:.... line might look like

disk:x:6:root,adm

and after editing it should be

disk:x:6:root,adm,solitude

Now, if you want to have the windows partition automatically mounted
at boot time, add en entry in /etc/fstab for it

I don't know the device name of your windows partition.
But there are good chances it's /dev/sda1 (if not replace
appropriately). You said in your message that you want it mounted
in /fat-c, so I'll assume that /fat-c exists

edit (still as root) the file /etc/fstab
Add an entry or edit the existing entry for the windows partition

Now, your entry for your windows partition should
look something like:

/dev/sda1 /fat-c ntfs-3g users,noauto,noatime,exec,rw 1 1

If you want solitude to be able to write in the windows partition
as root you can change ownership of /fat-c, so that solitude is
its owner:

chown -R solitude /fat-c

Now to your question: is it risky?
The answer is yes. It's always risky to give write permission
to an ordinary user. You can inadvertently delete some
important files
 
Old 07-04-2009, 03:59 PM   #10
peacenik
LQ Newbie
 
Registered: Apr 2007
Distribution: Slackware w/grub (mostly), Debian, NetBSD
Posts: 5

Rep: Reputation: 1
First you need to know the partition of your Windows partition.
Assuming that your partition is mounted to /fat-c, open /etc/fstab in a text editor as root and the entry should be something like:
/dev/xdx /fat-c ntfs-3g umask=000 1 0

to try it type # at the beginning of the existing entry for the "/dev/xdx" in question and add the line as above.
Save your file.
As root: umount /dev/xdx
then: mount /dev/xdx

Now try to see if you can enter into /fat-c as a user.
BTW, a suggestion: it might be better to rename /fat-c to /ntfs-c since it might become a little bit confusing and to keep things clear.

Last edited by peacenik; 07-04-2009 at 04:03 PM.
 
  


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
Encypt hard drive without having to enter a passphrase at boot Fredde87 Linux - Security 13 01-21-2009 03:17 AM
How to convert window's drives to linux? dheerajsuthar2008 Linux - Newbie 1 07-08-2008 12:58 PM
Window's Games on Linux Demenz4Life Linux - Desktop 7 10-30-2006 03:46 AM
Itroducing another Window's user that has been enlightened. izmeh LinuxQuestions.org Member Intro 10 10-27-2003 10:23 AM
X Window's Leave Trails carcus88 Linux - Software 3 08-12-2001 07:43 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:36 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