LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Unable to access folder (https://www.linuxquestions.org/questions/slackware-14/unable-to-access-folder-691313/)

phodopus 12-17-2008 04:06 PM

Unable to access folder
 
Hello,

I'm using Slackware 12 on a Dell Vostro 1000 laptop.

fstab:

Code:

/dev/sda5        swap            swap        defaults        0  0
/dev/sda2        /                ext3        defaults        1  1
/dev/sda2        /windowsxp      ntfs-3g    umask=077        1  0
#/dev/cdrom      /mnt/cdrom      auto        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
tmpfs            /dev/shm        tmpfs      defaults        0  0

I'm always logged in as "Hendrik", not "root". Main reason: I can't run VLC as root.

All my music is stored on /dev/sda2 and mounted under /windowsxp.

My problem:

I can't access /windowsxp if I'm using "Hendrik".

This is what I tried:
Code:

su
password: **************
chmod 755 /windowsxp

but this doesn't give me rights to access (read is enough) to access the required partition.

What am I doing wrong?

Regards,

Hendrik.

ErV 12-17-2008 04:15 PM

Quote:

Originally Posted by phodopus (Post 3379123)
What am I doing wrong?

You can't chmod files on ntfs partitions. Try to specify group in ntfs partition settings. For details see ntfs-3g manual.

phodopus 12-17-2008 04:16 PM

Quote:

Originally Posted by ErV (Post 3379133)
You can't chmod files on ntfs partitions. Try to specify group in ntfs partition settings. For details see ntfs-3g manual.

That explains a lot, I'll respond soon!

Alien Bob 12-17-2008 04:17 PM

Quote:

Originally Posted by phodopus (Post 3379123)
Hello,

I'm using Slackware 12 on a Dell Vostro 1000 laptop.

fstab:

Code:

/dev/sda5        swap            swap        defaults        0  0
/dev/sda2        /                ext3        defaults        1  1
/dev/sda2        /windowsxp      ntfs-3g    umask=077        1  0
#/dev/cdrom      /mnt/cdrom      auto        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
tmpfs            /dev/shm        tmpfs      defaults        0  0


For read-only user access, use a line of
Code:

/dev/sda2        /windowsxp      ntfs    umask=022        1  0
Quote:


I'm always logged in as "Hendrik", not "root". Main reason: I can't run VLC as root.
This was a choice made by the VLC team, but you can recompile VLC and add
Code:

--enable-run-as-root
to the "configure" command for VLC.


Eric

svetlio0o 12-17-2008 04:48 PM

Quote:

Originally Posted by phodopus (Post 3379123)
fstab:

Code:

/dev/sda2        /                ext3        defaults        1  1
/dev/sda2        /windowsxp      ntfs-3g    umask=077        1  0


I think I see /dev/sda2 added two times. Once as an ext3 partition and the second - ntfs-3g.. May be this can help :)

phodopus 12-17-2008 04:57 PM

Quote:

Originally Posted by svetlio0o (Post 3379170)
I think I see /dev/sda2 added two times. Once as an ext3 partition and the second - ntfs-3g.. May be this can help :)

Thanks for the little tip, while being to enthousiastic with copy pasting in my fstab, I made that mistake, making it impossible to even mount /windowsxp being logged in as root (a).

One problem less... I guess:

mount -a (again!) and voila, /windowsxp is back, for root...

Now I proceed for the "Hendrik" part :)

BTW:

Alien Bob, thanks for your response. btw, are you dutch?

Alien Bob 12-17-2008 05:02 PM

Quote:

Originally Posted by phodopus (Post 3379184)
Alien Bob, thanks for your response. btw, are you dutch?

The "Location: Eindhoven, The Netherlands" to the left of this post would be a small hint wouldn't it?

Eric

unSpawn 12-17-2008 05:14 PM

Quote:

Originally Posted by Alien Bob (Post 3379137)
This was a choice made by the VLC team, but you can recompile VLC

If developers release something that should not run as root then they probably have a good reason for it...


Quote:

Originally Posted by phodopus
I'm always logged in as "Hendrik", not "root". Main reason: I can't run VLC as root.

...but in essence you shouldn't use root for tasks other than systems administration anyway.

ErV 12-17-2008 05:47 PM

Here is example fstab line for ntfs partition.
Code:

/dev/hdc1        /mnt/common        ntfs-3g                defaults,locale=ru_RU.UTF8,gid=users,fmask=113,dmask=003 1 0
Partition is writeable/readable for all users. Of course, you can remove locale option or replace it with your own.

phodopus 12-18-2008 03:11 AM

Thanks, ErV. I didn't think I had to modify fstab to fix the problem. It can access it now, problem solved.

Thanks to all!

svetlio0o 12-18-2008 06:05 AM

I want to ask if there's a way to mount removable devices as readable/writeable partitions as user(not root)
The HAL daemon does that but the partition is only readable. Every time you have to su to root in order to write a file (a bit annoying) :(...

appzer0 12-18-2008 07:27 AM

We are out of topic but you may try to add your user account to the 'plugdev' group in /etc/group. Sorry for my English.

ErV 12-18-2008 08:49 AM

Quote:

Originally Posted by svetlio0o (Post 3379805)
I want to ask if there's a way to mount removable devices as readable/writeable partitions as user(not root)
The HAL daemon does that but the partition is only readable. Every time you have to su to root in order to write a file (a bit annoying) :(...

You should be included in "plugdev" group. Line in fstab also helps.


All times are GMT -5. The time now is 08:49 AM.