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 11-16-2007, 05:26 PM   #1
BULPulse
Member
 
Registered: Nov 2007
Location: UK
Distribution: Slackware 13
Posts: 60

Rep: Reputation: 15
How to share Hard disk with other than the root user???


I have 2 hard disks and i want to be able to have all permissions to write and modify on both disks using one user other than the root??? I tried this: chmod -R a+rwx /ntfs-s
but it didn't work
 
Old 11-16-2007, 05:36 PM   #2
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Quote:
Originally Posted by BULPulse View Post
I have 2 hard disks and i want to be able to have all permissions to write and modify on both disks using one user other than the root??? I tried this: chmod -R a+rwx /ntfs-s
but it didn't work
Hi,

I would make sure the user is in the right group. I would also look at the sticky by rworkman; ' 12.0 and HAL - READ THIS!'

Do you have 'ntfs-3g' installed? This would allow you to r/w NTFS file systems.
 
Old 11-16-2007, 07:05 PM   #3
XGizzmo
Member
 
Registered: Mar 2007
Distribution: Slackware
Posts: 264

Rep: Reputation: 69
Edit /etc/fstab and add the needed options to the drive you want to use, like "users" and maybe "fmask".
 
Old 11-16-2007, 11:01 PM   #4
rworkman
Slackware Contributor
 
Registered: Oct 2004
Location: Tuscaloosa, Alabama (USA)
Distribution: Slackware
Posts: 2,559

Rep: Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351
http://slackwiki.org/Windows_Partitions

Note that by default, you don't have write ability on ntfs partitions. For that, you'll need to either upgrade the ntfsutils in Slackware or install ntfs-3g.
 
Old 11-22-2007, 01:33 PM   #5
BULPulse
Member
 
Registered: Nov 2007
Location: UK
Distribution: Slackware 13
Posts: 60

Original Poster
Rep: Reputation: 15
I have installed ntfs-3g and nothing happend
 
Old 11-22-2007, 03:58 PM   #6
Alien_Hominid
Senior Member
 
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247

Rep: Reputation: 53
You need to have fuse installed and mount using -t ntfs-3g.

Please read:

Code:
man ntfs-3g

Last edited by Alien_Hominid; 11-22-2007 at 03:59 PM.
 
Old 11-22-2007, 04:01 PM   #7
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
When you say that nothing happened - do you mean that you re-mounted the disk but didn't get write access? Can you post the commands you used please?
 
Old 11-23-2007, 09:16 AM   #8
shadowsnipes
Senior Member
 
Registered: Sep 2005
Distribution: Slackware
Posts: 1,443

Rep: Reputation: 73
There are many ways you can go about this. For me, I don't want my windows partition to be mounted automatically and I only want my Crossover group (gid=102) to have access to it. The following entry in fstab does this. Notice the umask makes it so the owner (root) and the group have full rw access, but no one else.

Code:
/dev/hda1       /mnt/Windows            ntfs-3g         defaults,noauto,gid=102,umask=007       0       0
Change this to reflect your mount point and hardrive partition.

Root will have to mount the partition or you will have to sudo or have it automatically mounted using this scheme (ie. your user cannot mount it). If you really need your user to be the owner you can write a udev rule to take care of that.

If you are having trouble installing fuse or ntfs-3g I recommend using the slackbuilds to compile and install them.

http://slackbuilds.org/repository/12.0/system/fuse/
http://slackbuilds.org/repository/12.0/system/ntfs-3g/
 
Old 11-24-2007, 01:15 PM   #9
BULPulse
Member
 
Registered: Nov 2007
Location: UK
Distribution: Slackware 13
Posts: 60

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by shadowsnipes View Post
There are many ways you can go about this. For me, I don't want my windows partition to be mounted automatically and I only want my Crossover group (gid=102) to have access to it. The following entry in fstab does this. Notice the umask makes it so the owner (root) and the group have full rw access, but no one else.

Code:
/dev/hda1       /mnt/Windows            ntfs-3g         defaults,noauto,gid=102,umask=007       0       0
Change this to reflect your mount point and hardrive partition.

Root will have to mount the partition or you will have to sudo or have it automatically mounted using this scheme (ie. your user cannot mount it). If you really need your user to be the owner you can write a udev rule to take care of that.

If you are having trouble installing fuse or ntfs-3g I recommend using the slackbuilds to compile and install them.

http://slackbuilds.org/repository/12.0/system/fuse/
http://slackbuilds.org/repository/12.0/system/ntfs-3g/
Thank you! This worked fine for me.
 
  


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
mounting a hard disk image as user? zero79 Debian 2 05-05-2005 07:12 PM
Cannot write to SMB share as user, can as root GT_Onizuka Linux - Networking 3 10-03-2004 06:52 PM
can't mount smb share as non-root user nixinbarrie Linux - Networking 5 09-27-2004 08:51 PM
want to share local hard disk with all users infected Linux - General 5 09-02-2004 09:37 PM
GURUS HELP: Firewall,XP Share,root user,missing modules ganja_guru Slackware 0 04-19-2004 01:29 PM

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

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