SEARCH

Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#1 2013-03-09 10:55:02

husu
New Member
Registered: 2013-03-09
Posts: 4

Permissions on my NAS

Hi I'm new on #! and quite new on linux. I've used Mint for about 2 years. Didn't learn to much beacause everything is GUI
so i decided to try #! and i love it. Now to my noob question:

I've mounted my nas with
sudo mount -t cifs -o username=******,password=******* //192.168.1.13/video /home/tommie/Video

It works fine mounting. But I can't wach all my videos and pdf. I've tried:  sudo chmod 777 /home/tommie/Video
I need some kind of permission, some files are watchable and some are not.

Can anybody help me?

Offline

Help fund CrunchBang, donate to the project!

#2 2013-03-09 11:16:46

fatmac
#! Die Hard
Registered: 2012-11-14
Posts: 1,948

Re: Permissions on my NAS

You might just need to chown/chgrp all files below /home/tommie/Video.


Linux since 1999
Currently:  AntiX, & Crunchbang.
A good general beginners book for Linux :- http://rute.2038bug.com/index.html.gz
A good Debian read :- http://debian-handbook.info/get/now/

Offline

#3 2013-03-09 11:33:09

brontosaurusrex
#! Red Menace
Registered: 2012-06-15
Posts: 1,123

Re: Permissions on my NAS

also "ls -Rla" run from /home/tommie/Video should give you entire listing with permissions printed as well (to get an idea whats going on).

Online

#4 2013-03-09 11:54:49

husu
New Member
Registered: 2013-03-09
Posts: 4

Re: Permissions on my NAS

fatmac wrote:

You might just need to chown/chgrp all files below /home/tommie/Video.

Ok whats the cmd for that?

Is it: sudo chown 777 /home/tommie/Video

       sudo chgrp 777 /home/tommie/Video

Thanks for the superfast reply, much appreciated.

Offline

#5 2013-03-09 11:57:17

husu
New Member
Registered: 2013-03-09
Posts: 4

Re: Permissions on my NAS

I can access the files if i righclick on my Video folder and open as root. So its about the permissions, does the chown cmd iron that out?

Offline

#6 2013-03-09 12:47:49

xaos52
The Good Doctor
From: Planet of the @s
Registered: 2011-06-24
Posts: 4,602

Re: Permissions on my NAS

Add file_mode and dir_mode to the mount options like so:

username=yourusername,password=yourpassword,file_mode=0664,dir_mode=0775

Offline

#7 2013-03-09 13:24:55

husu
New Member
Registered: 2013-03-09
Posts: 4

Re: Permissions on my NAS

xaos52 wrote:

Add file_mode and dir_mode to the mount options like so:

username=yourusername,password=yourpassword,file_mode=0664,dir_mode=0775

Nope, it doesn not work. any other ideas?

I did like this:

sudo mount -t cifs -o username=******,password=*******,file_mode=0664,dir_mode=0775 //192.168.1.13/video /home/tommie/Video

Offline

#8 2013-03-09 14:05:51

xaos52
The Good Doctor
From: Planet of the @s
Registered: 2011-06-24
Posts: 4,602

Re: Permissions on my NAS

Post output of the stat command - in a terminal indow -  for any file under /home/tommie/Video/
after mounting the dir.

Last edited by xaos52 (2013-03-09 14:08:27)

Offline

#9 2013-03-10 10:59:23

fatmac
#! Die Hard
Registered: 2012-11-14
Posts: 1,948

Re: Permissions on my NAS

Sorry for not getting back sooner,

chown -R username:group /home/tommie/Video/*

should do it.

( ls -lh will show your username & group.)


Linux since 1999
Currently:  AntiX, & Crunchbang.
A good general beginners book for Linux :- http://rute.2038bug.com/index.html.gz
A good Debian read :- http://debian-handbook.info/get/now/

Offline

Board footer

Powered by FluxBB

Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.

Debian Logo