Can't access flash share


Recommended Posts

Hey there,

I've recently upgraded my server from 4.7 to 5.0-rc5. After that I ran the "New Permissions" Util.

 

Now to my problem. I got several user shares which span over my 3 data drives

 

Movies

TV Shows

Music

Pictures

Downloads

pyLoad

 

I can access all of them without a problem, I just can't access the "Downloads" one. Also, I'm not able to access my flash drive share.

 

I've set "Local Master" to Yes, and checked the rest of the SMB settings. Everything looks fine. I also did "ls -al ../mnt/user" via telnet, to check the permissions, which looked like this

total 15

drwxrwx--- 1 nobody users  232 2012-05-27 14:26 ./

drwxr-xr-x 6 root  root      0 2012-09-22 10:25 ../

drwxrwx--- 1 nobody users    48 2012-09-13 23:08 Downloads/

drwxrwx--- 1 nobody users 11424 2012-09-20 22:36 Movies/

drwxrwx--- 1 nobody users  2808 2012-09-18 16:17 Music/

drwxrwx--- 1 nobody users    72 2011-09-25 15:41 Pictures/

drwxrwx--- 1 nobody users  1184 2012-09-16 19:05 TV\ Shows/

drwxrwx--- 1 nobody users  496 2012-07-28 13:18 pyLoad/

 

So right now I pretty much have no clue why all shares work just fine except the "Downloads" one and the one regarding my flash drive.

 

Oh, the error msg I get looks like this

Error.png

 

Sorry about the fact that it's german :/

Link to comment

what do you see for these commands?

ls -l /mnt/boot

and

mount

 

Have you tried to re-run the permissions script? You would specifically need to do this if you wrote files on the downloads share as a user other than "nobody"

 

You can do this on the command line by typing:

newperms /mnt/user/Downloads

 

 

Link to comment

ls -l /mnt/boot

/bin/ls: cannot access /mnt/boot: No such file or directory

 

mount

proc on /proc type proc (rw)

sysfs on /sys type sysfs (rw)

/dev/sda1 on /boot type vfat (rw,noatime,nodiratime,umask=0,shortname=mixed)

/dev/md1 on /mnt/disk1 type reiserfs (rw,noatime,nodiratime,user_xattr,acl)

/dev/md2 on /mnt/disk2 type reiserfs (rw,noatime,nodiratime,user_xattr,acl)

/dev/md3 on /mnt/disk3 type reiserfs (rw,noatime,nodiratime,user_xattr,acl)

shfs on /mnt/user type fuse.shfs (rw,nosuid,nodev,noatime,allow_other,default_permissions)

 

I tried to re-run the script and also did the newperms /mnt/user/Downloads thing, but still no change

Link to comment

ls -l /mnt/boot

/bin/ls: cannot access /mnt/boot: No such file or directory

 

mount

proc on /proc type proc (rw)

sysfs on /sys type sysfs (rw)

/dev/sda1 on /boot type vfat (rw,noatime,nodiratime,umask=0,shortname=mixed)

/dev/md1 on /mnt/disk1 type reiserfs (rw,noatime,nodiratime,user_xattr,acl)

/dev/md2 on /mnt/disk2 type reiserfs (rw,noatime,nodiratime,user_xattr,acl)

/dev/md3 on /mnt/disk3 type reiserfs (rw,noatime,nodiratime,user_xattr,acl)

shfs on /mnt/user type fuse.shfs (rw,nosuid,nodev,noatime,allow_other,default_permissions)

 

I tried to re-run the script and also did the newperms /mnt/user/Downloads thing, but still no change

my mistake...

 

ls -al /boot

 

not /mnt/boot

Link to comment

ls -al /boot

total 34860

drwxrwxrwx  9 root root    4096 1970-01-01 01:00 ./

drwxr-xr-x 16 root root        0 2012-09-22 10:25 ../

-rwxrwxrwx  1 root root  2159760 2012-06-23 15:10 bzimage*

-rwxrwxrwx  1 root root 32985152 2012-06-23 15:18 bzroot*

drwxrwxrwx  3 root root    4096 2012-09-22 10:25 config/

drwxrwxrwx  3 root root    4096 2011-04-24 11:05 custom/

-r-xr-xr-x  1 root root    13639 2011-04-17 22:14 ldlinux.sys*

-rwxrwxrwx  1 root root    5162 2011-01-24 18:21 license.txt*

drwxrwxrwx  2 root root    4096 2012-09-22 10:25 logs/

-rwxrwxrwx  1 root root      830 2011-01-24 18:21 make_bootable.bat*

-rwxrwxrwx  1 root root  165080 2011-01-24 18:21 memtest*

-rwxrwxrwx  1 root root    33404 2011-01-24 18:21 menu.c32*

drwxrwxrwx  3 root root    8192 2011-05-27 22:28 packages/

-rwxrwxrwx  1 root root    83907 2012-05-12 13:46 preclear_disk.sh*

drwxrwxrwx  2 root root    4096 2012-05-13 16:22 preclear_reports/

-rwxrwxrwx  1 root root    67030 2011-04-23 11:28 preclear_results.txt*

-rwxrwxrwx  1 root root    6247 2011-01-24 18:21 readme.txt*

drwxrwxrwx  2 root root    4096 2011-05-27 22:29 smarthistory/

-rwxrwxrwx  1 root root      183 2011-01-24 18:21 syslinux.cfg*

-rwxrwxrwx  1 root root    27136 2011-01-24 18:21 syslinux.exe*

-rwxrwxrwx  1 root root    64327 2012-09-22 09:45 syslog.txt*

drwxrwxrwx  4 root root    16384 2011-04-21 17:58 unmenu/

Link to comment

ls -al /boot

total 34860

drwxrwxrwx  9 root root    4096 1970-01-01 01:00 ./

drwxr-xr-x 16 root root        0 2012-09-22 10:25 ../

-rwxrwxrwx  1 root root  2159760 2012-06-23 15:10 bzimage*

-rwxrwxrwx  1 root root 32985152 2012-06-23 15:18 bzroot*

drwxrwxrwx  3 root root    4096 2012-09-22 10:25 config/

drwxrwxrwx  3 root root    4096 2011-04-24 11:05 custom/

-r-xr-xr-x  1 root root    13639 2011-04-17 22:14 ldlinux.sys*

-rwxrwxrwx  1 root root    5162 2011-01-24 18:21 license.txt*

drwxrwxrwx  2 root root    4096 2012-09-22 10:25 logs/

-rwxrwxrwx  1 root root      830 2011-01-24 18:21 make_bootable.bat*

-rwxrwxrwx  1 root root  165080 2011-01-24 18:21 memtest*

-rwxrwxrwx  1 root root    33404 2011-01-24 18:21 menu.c32*

drwxrwxrwx  3 root root    8192 2011-05-27 22:28 packages/

-rwxrwxrwx  1 root root    83907 2012-05-12 13:46 preclear_disk.sh*

drwxrwxrwx  2 root root    4096 2012-05-13 16:22 preclear_reports/

-rwxrwxrwx  1 root root    67030 2011-04-23 11:28 preclear_results.txt*

-rwxrwxrwx  1 root root    6247 2011-01-24 18:21 readme.txt*

drwxrwxrwx  2 root root    4096 2011-05-27 22:29 smarthistory/

-rwxrwxrwx  1 root root      183 2011-01-24 18:21 syslinux.cfg*

-rwxrwxrwx  1 root root    27136 2011-01-24 18:21 syslinux.exe*

-rwxrwxrwx  1 root root    64327 2012-09-22 09:45 syslog.txt*

drwxrwxrwx  4 root root    16384 2011-04-21 17:58 unmenu/

Ok, one more check.  The permissions on /boot look normal.

 

What do you see with

testparm -s

 

Link to comment

testparm -s

Load smb config files from /etc/samba/smb.conf

rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)

WARNING: The "null passwords" option is deprecated

Can't find include file /boot/config/smb-extra.conf

Processing section ""

Processing section "[Downloads]"

Processing section "[Movies]"

Processing section "[Music]"

Processing section "[Pictures]"

Processing section "[TV Shows]"

Loaded services file OK.

Server role: ROLE_STANDALONE

[global]

        server string = Media server

        map to guest = Bad User

        null passwords = Yes

        passdb backend = smbpasswd

        syslog = 0

        syslog only = Yes

        max protocol = SMB2

        unix extensions = No

        load printers = No

        printcap name = /dev/null

        disable spoolss = Yes

        show add printer wizard = No

        idmap config * : backend = tdb

        invalid users = root

        create mask = 0770

        directory mask = 0770

        use sendfile = Yes

        map archive = No

        wide links = Yes

 

 

        comment = Flash share

        path = /boot

        read only = No

        create mask = 0777

        directory mask = 0777

        guest ok = Yes

 

[Downloads]

        path = /mnt/user/Downloads

        read only = No

        guest ok = Yes

 

[Movies]

        path = /mnt/user/Movies

        read only = No

        guest ok = Yes

        browseable = No

 

[Music]

        path = /mnt/user/Music

        read only = No

        guest ok = Yes

        browseable = No

 

[Pictures]

        path = /mnt/user/Pictures

        read only = No

        guest ok = Yes

        browseable = No

 

[TV Shows]

        path = /mnt/user/TV Shows

        read only = No

        guest ok = Yes

        browseable = No

 

€dit: It works! After I ran the testparm -s command I tried to access the two shares again and now it works without a problem. Thank you so much, Joe!

Link to comment
  • 2 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.