LinuxQuestions.org
Help answer threads with 0 replies.
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 12-29-2009, 01:57 PM   #16
ozanbaba
Member
 
Registered: May 2003
Location: İzmir
Distribution: Slackware64 15.0 Multilib
Posts: 778

Rep: Reputation: 135Reputation: 135

Quote:
Originally Posted by mutav View Post
I tried several ways of mounting, mainly using the mount command.
Here's my fstab:
Code:
/dev/hda6        swap             swap        defaults         0   0
/dev/hdb3        /                ext4        defaults         1   1
/dev/hda1        /mnt/hda1        ntfs-3g     umask=077        1   0
/dev/hda5        /mnt/hda5        ntfs-3g     umask=077        1   0
/dev/hdb1        /mnt/hdb1        ntfs-3g     umask=077        1   0
/dev/cdrom       /mnt/cdrom       auto        noauto,user,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
tmpfs            /dev/shm         tmpfs       defaults         0   0
The problem now is that i cannot access any file on hdb1, and chown or chmod are not working, i tried changing the permissions and the owners of the files but it's not working, on both commands it shows me error: Operation not supported.
umask=077 default ownership root:root, of course you can't acess as normal user, add this to you fstap options: uid=$USER,gid=$GROUP

uid for setting the ownership, gid is for setting groups. and chown mount point to $USER.
 
Old 12-29-2009, 02:24 PM   #17
PhoenixAndThor
Member
 
Registered: Sep 2009
Location: Geogia, USA
Distribution: Ubuntu, Debian, Live CDs
Posts: 213

Rep: Reputation: 39
Okay, so its a mount option thing.

Last edited by PhoenixAndThor; 12-29-2009 at 02:26 PM. Reason: ozanbaba posted before me
 
Old 12-29-2009, 02:25 PM   #18
mutav
LQ Newbie
 
Registered: Dec 2009
Posts: 20

Original Poster
Rep: Reputation: 0
I solved the problem.

Just replace the umask=077 with defaults in fstab, reboot the machine and that's it, now it's working as it's supposed to be.

Thank you for your help.
 
Old 12-29-2009, 02:28 PM   #19
ozanbaba
Member
 
Registered: May 2003
Location: İzmir
Distribution: Slackware64 15.0 Multilib
Posts: 778

Rep: Reputation: 135Reputation: 135
Quote:
Originally Posted by mutav View Post
I solved the problem.

Just replace the umask=077 with defaults in fstab, reboot the machine and that's it, now it's working as it's supposed to be.

Thank you for your help.
and anyone can see it.

my guess is that you wanted to make it so it can only be accessed by $USER. i did same thing for a static smb mount. use uid and gid options to lock it to spasific user and with umask 077, only spesific user can access it.
 
1 members found this post helpful.
Old 12-29-2009, 02:37 PM   #20
PhoenixAndThor
Member
 
Registered: Sep 2009
Location: Geogia, USA
Distribution: Ubuntu, Debian, Live CDs
Posts: 213

Rep: Reputation: 39
I'm bookmarking this one for my support folder! :-)
 
Old 12-29-2009, 02:39 PM   #21
ozanbaba
Member
 
Registered: May 2003
Location: İzmir
Distribution: Slackware64 15.0 Multilib
Posts: 778

Rep: Reputation: 135Reputation: 135
Quote:
Originally Posted by PhoenixAndThor View Post
I'm bookmarking this one for my support folder! :-)
it did turn out very informative for a lot of people

Last edited by ozanbaba; 12-29-2009 at 02:39 PM. Reason: smiliey was forgotten
 
  


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
ReiserFS hdb1: checking transaction log (hdb1) yancek Puppy 0 11-29-2008 06:00 PM
i get the error Could not enter folder /mnt/hdb1 linuxretard Linux - Hardware 2 04-10-2005 10:54 AM
/mnt/hdb1 - only su access (NTFS) WannaLearnLinux Linux - General 9 03-14-2004 12:44 PM
resize hdb1 -root folder!! ngan_yine Linux - Newbie 2 01-15-2004 03:51 PM
Could not enter directory mnt/cdrom mgbgt Linux - Newbie 5 06-17-2003 07:50 PM

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

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