Ubuntu :: Samba - Only Root Can Mount

Jun 24, 2010

I have read a few threads about samba and mounting, and cannot get it straight. Here is basically what I have done...

sudo mkdir /media/effjsands
sudo pico /etc/fstab
//10.1.121.36/sandsjh/media/effjsands cifs
credentials=/etc/samba/user,d_mode=777,f_mode=777 0 0
sudo pico /etc/rc.local
mount /media/effjsands
sudo pico /etc/samba/user
username=sandsjh
password=IamN0Tl33t34

I reboot and it does not mount. I can get Nautilus to open //10.1.121.36/sandsjh , so I know it is a valid path. When I go to terminal and run manually, I get:
sandsjh@LTL-IT-SANDS:/etc$ ./rc.local
mount: only root can mount //10.1.121.36/sandsjh on /media/effjsands

View 4 Replies


ADVERTISEMENT

General :: Root Can't Chown Mount Point For Samba Share?

May 30, 2010

I have a samba share that I mount locally at boot through fstab. The share is writable and if I access the share directly, say with konqueror and smb (smb://hostname/sharename) then I can do anything I want (create, write, delete, edit, files/directories). I have a mount point on my local machine

Code:

/shares/mp3

and I (username dtest) was unable to do anything except read files and create directories trying to do them to the local mountpoint except as root. I figured it would be a matter of

Code:

chown -R dtest /shares/mp3

but I was unable to do that even as root, I kept getting permission denied. When I did

Code:

ls -alt /shares/ it told me the owner was 1000 and the group was root. Dtest was already a member of the root group and I was able to

Code:

chmod -R 774

as root but I still couldn't do anything except read and create directories directly via the mountpoint. Ultimately I solved this by changing the uid of user dtest via kuser and then just chowning my home directory back to dtest. It seems like as root I should be able to change the owner of the directory. I know it's because this is a samba share, but it doesn't make any sense why root couldn't just chown it. Is there another way to change the owner of a directory, or is this set by the machine hosting the samba share?

View 3 Replies View Related

Networking :: Samba Configuration - Cannot Mount Samba Share

Apr 26, 2011

Start>Run>\192.168.0.1storage gives me "The specified network password is not correct." It lists my domain as "ANTEC" which is the name of my computer, though I've changed the workgroup to WELLS. I've run:

setsebool -P samba_domain_controller on

Trying to connect to samba locally gives me this:

Code:

[tedward@hp-firegate ~]$ smbclient //192.168.0.1/storage -Utedafur
Password:
session setup failed: NT_STATUS_LOGON_FAILURE

[code]....

View 6 Replies View Related

Ubuntu Networking :: Samba And External Drive - Unable To Mount Location - Failed To Mount Windows Share - Dialog Box

May 25, 2010

I have been trying to share folders from my main PC which is running Ubuntu 10.04. I have been able to figure out Samba enough to get my a couple of folders shared, but I have been unable to share any folders which are on my external harddrive. After entering the path in my smb.conf file they appear on the network but I am unable to navigate to them. When trying to navigate to them through the network folder on the pc they are actually connected to I get an "Unable to mount location: Failed to mount windows share" dialog box. On the windows pc I am trying to share with I get, "Windows cannot acces \Josh-Desktop
ame of folder"

My smb.conf file looks like this:

That folders I cannot access are Music and Videos.

View 9 Replies View Related

Ubuntu :: Mount: Only Root Can Mount /dev/sdb1 On /media/MyUSBDrive

Apr 27, 2011

I used the ntfs-config utility to mount my windows drives automatically at startup. While doing so, I had my USB-HDD still attached, and after making changes and rebooting, it did something unknown I didn't expect and I cannot mount my USB-HDD again, and it gives me the following error message:

Error mounting: mount exited with exit code 1: helper failed with:
mount: only root can mount /dev/sdb1 on /media/MyUSBDrive

I did manage to open it somehow, but then all the data was erased apart from ~3 GiB [edit: it's got some kind of extra drive built-in which is mounted as a CD-ROM drive, and when I open that one first all the files are missing in the actual drive, otherwise I get the message above]. I don't know what information I should include here, but my fstab looks like this:

# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>

[code]....

This line in terminal:

sudo mount -t ntfs-3g /dev/sdb1 /media/sdb1

Gives:

fuse: failed to access mountpoint /media/sdb1: No such file or directory

What should I do to recover my files and fix the mount error? [edit: at the very least, how do I backup my files onto my internal HDD so I can format it and recover it in this manner]

View 6 Replies View Related

Ubuntu :: How To Install The Samba - Root@Jason-Lin:/# Apt-get Install Samba

May 14, 2011

This is what I get:

Code:

root@Jason-Lin:/# apt-get install samba
Reading package lists... Done
Building dependency tree
Reading state information... Done

[code]...

This is a fresh 11.04 install. I grabbed a couple of the basics (alternate browsers, media players, etcetera) but other than that I haven't made any modifications or installed any strange packages.

Code:

root@Jason-Lin:/# uname -a
Linux Jason-Lin 2.6.38-8-generic #42-Ubuntu SMP Mon Apr 11 03:31:50 UTC 2011 i686 i686 i386 GNU/Linux

View 5 Replies View Related

Ubuntu Networking :: Samba Share : Get An Error Message "unable To Mount Location, Failed To Mount Windows Share"?

Jan 22, 2011

I have installed ubuntu 10.10 and the Samba addon to configure my shares to my Windows terminals.This is what I got

Firewall off (utf disabled)

Internal Sata /dev/sda1 (EXT4 FS)

External USB HDD /dev/sdb1 mounted at /media/SG1500GB (EXT4 FS)

I have two shares

1. //home/test - Which I can see and access with no problems (can't write to it though even though I set the share as writable?, but, I can read from it). This is available to everyone. My windows terminal can see this folder and access it. This is on my main 80GB internal drive /dev/sda1.

2. //media/SG1500GB/Music. I set this up for everyone full access and I can see it at all my Windows machines but,I can't get into the folder. Windows keeps giving me an error stating network path not found.I also try to access it via the Nautilus (Places/Network/system/music) and get an error message "unable to mount location, Failed to mount windows share". This drive is mounted per the disk utility.

View 4 Replies View Related

Ubuntu :: How To Mount A Samba Share

Dec 11, 2010

I need to mount two Samba shares from my Ubuntu Server to my Desktop they are:

[shared]
path = /media/share
read only = no
guest ok = yes
[www]
path = /var/www
read only = no

I made two directories in my home folder on the desktop called share and www how do I mount these now? I have to use the terminal btw.

If I run the command: smbclient -L //192.168.10.101 which is the IP of my server it works.

View 1 Replies View Related

Ubuntu :: Mount A Samba Share Form Another Pc?

Feb 8, 2010

I want to mount a samba share form another Ubuntu pc.

With nautilus I can do: smb://xxxxxxx;username@192.168.1.12/sharedfolder/ And i can browse the shared folder without problem

but I want to mount it. I have tried:

Code:
user@compu:~$ sudo mount -t smbfs //192.168.1.12/sharedfolder /mnt/folder -o username=username
mount: wrong fs type, bad option, bad superblock on //192.168.1.64/esco3,
missing codepage or helper program, or other error

[Code].....

Im aware I'm not passing the password and I was hoping it would ask me. Also I'd like to store all that info in my computer and try to auto mount the shared every time i use the pc.

View 3 Replies View Related

Ubuntu :: Samba Mount Not Appearing In When To Attach?

Aug 6, 2010

I've mounted a windows share in places. When I look at computer in places it shows down the left hand side. When I write an email in Thunderbird and go to attach it does not show down the left. Firefox doesn't see it either when attaching from gmail. But open office and do a save as it does see it.

View 3 Replies View Related

Ubuntu :: Auto Mount A NAS Samba Share

Jan 13, 2011

One problem I'm having is with getting some apps to access NAS hosted files and folder over samba. Two examples are photo managment apps and backup apps, which seem to only want to work with local files and folders.I have come across a number of articles about cifs, autofs, gigolo, fstub, etc (including the autofs community documentation). But so far I've had no luck in auto mounting a samba shared resource as local.

Can anyone point me to a definitive tutorial, or provide an explanation on how I might accomplish auto mounting samba shares?

View 7 Replies View Related

Ubuntu :: Mount A Win7 Drive NOT Through Samba?

May 10, 2011

I've already set up my home network to work smoothly with Samba, mainly meaning that my HTPC running Win7 can share the user home folder. So currently is simply have a Nautilus bookmark set to 'smb://win7server/users/username/' and it connects just fine.

Now, I want to use 'mount' to make a connection to this same folder spot such that it is seen as part of the native file system. I've tried this: sudo mount -t cifs //192.168.2.101/users/username/ /mnt/win7server

But I get a 'wrong fs type' warning. WTF? I thought that windows was cifs? You guys have any pointers to how to mount this? BTW, I must absolutely mount this file system, as I'm running some programs built with Open Motif, which do not support Samba.

View 9 Replies View Related

Ubuntu :: 10.04 Lucid - Samba Only Works For Root User?

Jul 17, 2010

I'm new to Ubuntu and I'm pretty sure I'm just missing something simple. I want to use Samba to share my raid array to all of my machines, so I have...Installed Ubuntu and created a single user: mattMounted my ext4 raid set with fstab:

Code:
UUID=78d85398-d179-4640-bb1b-f770ba90abb1 /media/Data ext4 defaults 0 0
Installed Samba (real Samba, I haven't touched the Nautilus-Share right-click thing):

[code]...

View 1 Replies View Related

Ubuntu :: Samba Share Mounting - From 'mount' To Fstab

Mar 21, 2010

I have a command line that mounts the disk of my mobile

Code:

It works, but there is a problem with it. Every folder and file has root:root ownership, so I am unable to change anything. Even when I change permissions manually, it does not work.

Now, I want to move this to fstab but have no idea how an fstab line should look like. Obviously, I want to also have rw access to the disk.

View 7 Replies View Related

Ubuntu Networking :: Permanent Mount Of A Samba Share (10.10)?

Oct 10, 2010

I have sent the last 5 hours (it is now 6am) and I am in no mood for lazy know-it-all'sI have returned begging and crawling back to Ubuntu (I waited a day for 10.10 to be released) and I have again stumbled across why I go back to Micro$oft's Windows.All I want to do it have a permanent share to my nas, which is on my Netgear DGND3300.I can reach it by Place -> Network -> Windows Network -> NAKALEEN -> NAS -> USB_Storagebut for the life of me I can't make it permanent. I need it as all my Movies/TV/eBooks are on this.I have followed every and I mean EVERY option I have found on Google with no luck. From the fstab/mount option to the gvfs option (as you can guess both failed)The reason it is *$&^%$^&%$ me off it that Windows can do it with a couple of mouse presses (Map Network drive). Making Ubuntu a joke in this area.

View 9 Replies View Related

OpenSUSE :: Kde And Samba Shares - How To Mount

Feb 25, 2011

From Konqueror/Dolphin is possible to access samba shares. If your computer is joined to a Active Directory domain and you use a domain user, you can access samba shares with smb://server.domain/share and you are not ask for user/pass (you use a kerberos tiquet). Kde programs as Amarok, K3b, ... can access files in samba shares without problem. But other programs, specially gnome programs (including the popular OpenOffice), are unable to use files in a samba share. If instead of using Konqueror/dolphin you use Nautilus, there is no problem because it maps the share to a local folder ($HOME/.gvfs/share in sever/) and the program are able to access files in samba shares without problems as the folder is mounted locally (as if you use cifs.mount). Its a problem to use konqueror/dolphin and have to change to nautilus to access samba shares.

If you use Windows you can mount it in an easy way. That's what I try to do from konqueror, not having to open a konsole and be able to mount the share in an easy way. I've tried with smb4k, but is has not worked for me (tried in 2 OpenSuse 11.3 and 1 opensuse 11.2). What Nautilus does when accessing a samba shares like smb://server.domain.dom/share is to execute the command: [URL]... What I try is to do the same, but just form Konqueror/Dolphin. I'd like to add a button to Konqueror/dolphin that pressing the button and if the URL points to a samba share, the share is mounted in $HOME/LocalNetwork/server/share. As I say, it can be as easy as executing the gvfs-mount, but don't know how.

View 2 Replies View Related

Networking :: Share A NFS Mount With Samba?

Apr 21, 2010

Can I share an NFS mount with samba?

Scenario:

ServerA has an NFS Mount to ServerB at mount point /home/qlogger/logs

I can cd to /home/qlogger/logs on ServerA and see the contents as they would be on ServerB (NFS Working with proper permissions rw).

I have a samba share setup on ServerA to share the NFS Mounted Directory (/home/qlogger/logs)

I connect with my windows host and am able to view the files and folders. I can create folders just fine however; when I go to copy a file from the windows machine to the samba share I receive a message saying the file is locked.

I have disabled oplocks in samba and the problem still persists.

View 1 Replies View Related

Networking :: Can't Auto Mount Samba Via Name Only IP

Dec 7, 2010

I have a system that I want to auto mount a samba from another one. The issue is that they are both laptops so doing it by name is much much better than by ip. Unfortunately when I try to mount by name with this in my samba:

[code]...

it works fine. The ip obviously is going to change depending on what network the two systems are on.

View 1 Replies View Related

Ubuntu Servers :: MAC OsX Client Cannot Mount Samba Protected Share?

Jan 12, 2010

I recently set up a Samba server (Ubuntu 8.10 desktop) in a Social Businness Office. in there have different laptops and OS.

Here is how my smb.conf file look in the share section.

[private folder]
path = /path/to/private
comment = private
valid users = user1 user2
directory mask = 0777

[Code]....

It work fine for Win and Ubuntu, but access this folder with Mac OsX gives this error:

smb_mount: open session failed!: syserr = Broken pipe

It seems that authentication is ok, but for some reason it cannot mount the device.

I know this is not the right place to talk about OsX issues.

I would like to exclude if there are some options I miss in the smb.conf.

View 4 Replies View Related

Ubuntu Networking :: Mount A Samba Share To Access It From A Terminal?

Feb 3, 2010

I am trying to properly mount a samba share in order to access it from a terminal and run a script that I've written over a folder in the share. How could I do that? I tried smbclient but after successfully logging in I couldn't issue the sh command. Isn't it possible to have it mounted in the /mnt folder like a normal filesystem?

View 1 Replies View Related

Ubuntu Servers :: Auto Mount Group Shares With Samba PDC?

Mar 2, 2010

I've a few group shares setup with samba and a PDC (using windows 7 clients) and the home directory for each user gets mounted automatically. I've configured group shares and only members of the respective group have access to them, but my question is how do I tell samba to automount group shares based on the user group?

View 1 Replies View Related

Ubuntu Networking :: Samba Shares 'Unable To Mount Location'

May 23, 2010

on 10.04 I clicked to share my music folder with the network (other computer also having 10.04) and it installed samba for me. I restarted expecting to find sharing working as it had on the other computer by doing the exact same thing. But for some strange reason I can't access the shares on either computer through the network workgroup. It just says "Unable to Mount Location".

View 7 Replies View Related

Ubuntu Networking :: 10.04 Unable To Mount Samba Version 3 Share?

Aug 3, 2010

I've just loaded a laptop with Ubuntu 10.04, and I am unable to mount a samba share from an older Red Hat server. The problem first occurred when I tried using "Places -> Network" or "Places -> Connect to server", and the server's log gives me something like this

[2010/08/03 15:40:38, 1] auth/auth_server.c:check_smbserver_security(363)
password server 10.100.1.2 rejected the password: NT_STATUS_LOGON_FAILURE
[2010/08/03 15:40:38, 2] auth/auth.c:check_ntlm_password(319)

[code]....

View 2 Replies View Related

Ubuntu Networking :: Unable To Mount Samba Shares Between Computers

Oct 15, 2010

i have a ubuntu 10.10 desktop and laptop. i installed samba, and smbfs. i shared a folder on each computer. when i browse the network i can see the laptop from the laptop, and can see the desktop from the laptop, but i cant see the laptop from the desktop. when i try to mount the share it says unable to mount, but mounts it anyway...but, i need to be able to mount it so that rsync will see the shares as a dir on the desktop. i tried manually mounting via smbmount following several threads that i found, and i keep getting error sudo smbmount //192.168.1.78/share /media/laptop Password: Unable to find suitable address

that is as far as i've been able to get. i've looked and have only been able to find threads about windows shares, not between 2 ubuntu machines. and i dont know why laptop can see the desktop but not the other way around. they have identical smb.conf files

View 2 Replies View Related

Ubuntu :: Devicekit - Mount Samba Shares From Command Line?

Dec 1, 2010

Is there a way for a normal user to mount samba shares from the command line using devicekit? It seems like I remember there was a way to do it using hal, but that's been replaced by devicekit in Lucid if I've read correctly.

I can click on the shares I want in nautilus under "Network", but I'm using fluxbox and I'd like to mount a few shares at startup. I read the documentation for the udisks command, but I can't figure out how to get it to work with samba shares.

View 2 Replies View Related

Ubuntu Networking :: Losing Permissions On Samba Mount Points?

Jul 8, 2011

I have an Ubuntu 11.04 laptop that I use to connect to a Windows 7 server. Everything was working fine until the hard drive on the server crashed and it was replaced with a backup. Now I intermittently lose access to the shares with Nautilus giving me the following message:

"The folder contents could not be displayed.You do not have the permissions necessary to view the contents of Folder"

When I look at the mount points in terminal I see the following:

drwxr-xr-x 5 root root 4096 2011-07-08 13:12 .
drwxr-xr-x 23 root root 4096 2011-05-03 11:17 ..
d????????? ? ? ? ? ? Folder

Where Folder is the mount point.My fstab looks like this, although I must point out that I have tried virtually every possible permutation with no change.

//10.35.1.110/Share /media/Folder cifs rw,_netdev,iocharset=utf8,credentials=/root/smb/credentials,uid=1000,gid=1000,noperm,file_mode=077 7,dir_mode=0777,sign 0 0

Sometimes the permissions will revert back by themselves, sometimes I need to umount and mount to get back in.I have tried deleting and recreating the mount points. No change.It is driving me up the wall, I have tried everything I can think of, installing/uninstalling winbind, the fuse modules etc etc. I use this machine as a production machine in a heterogeneous environment and everything works awesomely except for this. I love Ubuntu, I can't even think of booting Windoze these days but not being able to access the network shares is a right show-stopper for me.

View 9 Replies View Related

Ubuntu :: Mount ISO Without Root?

Apr 5, 2010

How do I mount a ISO without root? There's my account that's admin and two others that don't have passwords or root privileges. I really hope its possible without having to edit /etc/fstab because that didn't help me because it mounted all the ISOs and I don't want to have to edit fstab every time I make a new ISO. I got the ISO by running
Code:
dd if=/dev/cdrom of=abc.ISO

View 3 Replies View Related

General :: Samba Testparm Root Vs User

Aug 6, 2010

I am trying to setup samba. when I run testparm as a user it says all is well. But when I run it as root (sudo testparm) I get the error rlimit_max: rlimit_max (1024) below minimum Windows limit (16384)

I entered the following line in "/etc/security/limits.conf":

* - nofile 16384

View 2 Replies View Related

CentOS 5 Server :: Samba Login As Root?

Sep 21, 2009

Just completed a fresh install if V5.3. It works fine.

Samba server: I tried to create a Samba user named "root" with Windows user name "administrator". Message is something like "account already exists"? I know "root" exists, but why can't I use it as a login? I don't get this error when I use another existing user account "LouA".

This is important to me because many documents state that "root" is to be used as the user name. I don't want to change these.

Current set-up allows access to all users (there is no Samba user listed) and I can read, write and delete files from Windows just fine.

View 1 Replies View Related

Red Hat / Fedora :: Mount Samba Share To Windows?

Aug 31, 2010

i hav configured samba share in RHEL 5.4 , it can be accessable from other linux machine but i want to access it from windows machine, how can i do it? i also want want to know that in RHEL my partitions are in ext3 format, so how can windows can detect this partition, Is samba share is independent of filesystem on either machines

case2:---
i hav configured samba on windows server 2008 , how can i mount it on linux machine

View 9 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved