Ubuntu Networking :: CIFS User Credentials On A QNap 209II NAS-disk

Mar 29, 2011

When I use Nautilus to copy files to my NAS-disk they end up with owner "root" and I cannot edit them. If I copy them back to my PC they have owner <username> and are editable.

My fstab is: //10.0.0.20/Qmultimedia /media/Mmedia cifs credentials=/root/.smbcreds,directio,iocharset=utf8,noacl,noperm,rw, nobootwait 0 0

Of course I want my Mmedia mount on the NAS to behave like another disk on my PC; i.e. owner should be <username> and the files should be editable.

View 1 Replies


ADVERTISEMENT

OpenSUSE Network :: Mount CIFS Drive With Multiple Credentials Files?

Jul 26, 2011

I'd like to have a CIFS drive mountable for various users. Each user uses different credentials and I want the drives to be automounted without using sudo-rights. I imagine the best thing to do would be to have the fstab entry point to multiple credentials files. Is there a way of doing that?

View 2 Replies View Related

Networking :: Unable To Mount Cifs Shares As User?

Oct 4, 2010

this subject seems to have been touched a hundred times, but after following all the advice google could provide, i'm still unable to mount cifs shares as user, here's the fstab line

<server> <mountpoint> cifs rw,noauto,credentials=/etc/gattonauth,uid=1000,gid=1000,dir_mode=0770 0 0
i've chowned the mountpoint to the user,
ive tried
chmod +s /sbin/mount.cifs /sbin/mount.cifs
suggested by http://www.linuxquestions.org/questi...-lenny-711337/

View 9 Replies View Related

Networking :: Mounting Cifs As User - Permissions With SUID Bit?

Jan 11, 2010

I have looked at a LOT of forum posts and other sites trying to solve this problem but I have had no luck. I've seen the following:[URL].. I have an entry in my fstab that lets root mount a samba share on a Windows Server 2003 machine and gives users full read/write access to the share. The fstab entry looks like:

Code:
//servername.net/share /mnt/share cifs rw,user,umask=000,username=someuser,noauto,file_mode=0777,dir_mode=0777 0 0
However, when a normal user tries to mount the share they get one of two errors:
1. If I have /sbin/mount.cifs set to 777
Code:
mount error(1): Operation not permitted
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
2. If I have /sbin/mount.cifs set to +s

Code: mount error: permission denied or not superuser and mount.cifs not installed SUID Does anyone have any suggestions as to how I would go about getting a user able to mount this samba share?

View 1 Replies View Related

Ubuntu Networking :: Installing The Server On Qnap?

Feb 10, 2010

Qnaps run on Atom: is it possible to install Ubuntu server at all? I like them being small and easy on the power drain, but I'd rather have my OS of choice.

View 3 Replies View Related

General :: Copy User Credentials From A MySQL Table Into SSH Users?

Mar 13, 2011

I'm currently running a membership site which is Joomla-based. Basically I need a bash script to constantly check that MySQL users table and copy those credentials into my SSH users list (subsequently giving them SSH access).I've looked at pam_mysql, but that merely is for authentication, it doesnt add them to the SSH users.

View 3 Replies View Related

OpenSUSE Network :: User Parameters Don't Work Mounting CIFS Share?

Nov 18, 2010

I need to mount a windows share on my OpenSUSE 11.3. I get it using the mount.cifs command (by itself or using cifstab), but only root can rw file. I try the uid/gid parameters (also using forceuid) and the file_mode/dir_mode parameters, but I get the same behavior: all files and directory with rwxr-xr-x permissions and root/root (user/group). I read the whole section FILE AND DIRECTORY OWNERSHIP AND PERMISSIONS in man mount.cifs but nothing works.

View 9 Replies View Related

OpenSUSE Network :: Mount A CIFS Share So That User Stevej Has All Rights To It

Mar 21, 2011

Q: How do I mount a CIFS share so that my user stevej has all rights to it?

Summary: I can mount the share as root.

mount.cifs //10.x.x.x/Data /home/stevej/Synology/Data/ --verbose -o user=stevej

Using Dolphin in Super-User mode, I can copy files and directories from the share to itself with no errors. Using Dolphin in Normal-user mode. I get the failure "Could not change permissions for...". The file is copied, but its owner,timestamp and permissions are wrong. If a subdirectory is involved, the copy aborts.

Using Windows XP I can copy files and directories from the share to itself with no errors.

Testing: If I mount with uid and gid, then my normal user can not access the share.
mount.cifs //10.x.x.x/Data /home/stevej/Synology/Data/ --verbose -o user=stevej uid=stevej gid=users

[code]...

Synology DS211 - There are 2 users on it. One of which is stevej and the other is julie. Rights RWX are applied to the users and the group called users. All files have stevej as the owner and users as the group with RWX Opensuse 11.4 - There are 2 pc's. One is run as stevej. The other pc runs as julie Windows 2000 - Runs as stevej and maps to the share as stevej.

Works as expected Windows XP - Runs as julie and maps the the share as julie. Works as expected Ultimately, I want the shares to automount at boot, or login and give the user full access. I have been to Swerdna's page and done as much as I can, but still no luck.

View 4 Replies View Related

Ubuntu Networking :: Rsync Over SSH - Embed Logon Credentials?

Jan 18, 2010

Is there a way to embed the user password in the following code?

Code:
rsync -r -n --progress --delete -u -l -e ssh 192.168.1.9:/Volumes/1TB_Internal/Music "/media/Storage/Libraries/My Music"

[code]...

View 4 Replies View Related

Ubuntu Networking :: Encrypted Password In Samba Credentials File?

Apr 20, 2010

I remember that some time ago I found a guide on the Ubuntu website about adding samba shares to mount at boot via /etc/fstab. The guide also mentioned using a credentials file to store the username and password.

However, the password was encrypted (in md5 I think) and it could not be read directly, but it still worked with fstab mount. If I remember correctly, the file contents were similar to this:

Code:
useraname = user
password = --md5

where was replaced by the encoded password. All was done in terminal. Recently I changed computers, and re-installed Ubuntu, but I forgot to save that file so I am not sure about the contents. I would like to know how to do this again, but I can't find the guide anymore. Does anyone know how to do this? Storing the password in plain text in file readable only by root is not acceptable because it can be read by someone mounting the drive from other operating system, and the share cannot be mounted/unmounted by regular users (which is possible with the md5 encrypted password).

View 1 Replies View Related

Ubuntu :: Connecting To QNAP ISCSI Target

Nov 8, 2010

connecting to my QNAP iSCSI target from Ubuntu (10.04). I've followed the instructions in the QNAP manual, but I something goes wrong when I need to list the nodes. When I enter

[Code]....

View 1 Replies View Related

General :: Unable To Copy Files Over To Qnap Nas?

May 2, 2011

I'm having issues copying files from a USB attached HDD (formatted by the NAS to EXT3) over to a NAS device. First some background info (maybe relevant or may not be): I upgraded the HDD in my NAS and now I'm unable to copy the files over from the old HDD while plugged into the NAS. Also tried copying over from windows 7 (64 & 32 bit) as well as an XP machine using EXT2FDS & IFS resulting in perpetual re-booting of all three machines.As a result of that I got a brainwave to try copying the files over from a bootable Linux DVD (Unbuntu 11.04) to the Nas over the network. I am in Unbuntu now but I am having problems copying to the NAS. It seems to work when I select individual files but when I select afolder/folders/sub folders to copy over an "error while copying" dialog box appears appears. For example: in "Show More Details" here is the copied text from an error: "Error stating file '/media/f0745264-c91b-4528-9fe3-e3469cdb13cc/Public/MANUALS/oliver_manual_99_99GM_tractors_O_7_1956.pdf': Input/output error"

View 2 Replies View Related

Software :: How To Run SPLUNK On QNAP 219P (ARM Processor)

Oct 18, 2010

I have a QNAP 219P which has an ARM processor. I want to run SPLUNK, the SNMP/Polling management program on it (not that crazy for a small business server I wouldn't have thought).

Anyway, I can download SPLUNK in the following forms:

splunk-4.1.5-85165.i386.rpm
splunk-4.1.5-85165-linux-2.6-intel.deb
splunk-4.1.5-85165-Linux-i686.tgz
splunk-4.1.5-85165-linux-2.6-x86_64.rpm
splunk-4.1.5-85165-linux-2.6-amd64.deb
splunk-4.1.5-85165-Linux-x86_64.tgz

View 1 Replies View Related

OpenSUSE Network :: Mounting A Cifs Share As Normal User In OpenSuse 11.4?

Apr 2, 2011

Q: How can I allow my users to mount a cifs share without an entry in fstab in OpenSuse 11.4?

I have an answer myself. Until OpenSuse 11.2 I could mount my samba shares by making mount.cifs and umount.cifs setuid root. Today I installed OpenSuse 11.4. Unfortunately mount.cifs isn't anymore allowed to be setuid due to security concerns. Security is not an issue in my case, so I copied the mount.cifs and umount.cifs from 11.2 to make it work again:

1. Download cifs-mount-3.4.2-1.1.3.1.x86_64.rpm from this repository (I use 64 bit):
"http://download.opensuse.org/distribution/11.2/repo/oss/suse/x86_64/"
2. Extract the files mount.cifs and umount.cifs from the rpm and copy them to /sbin
3. Make them setuid root:

Code:
linux-y5qw:~ # chmod u+s /sbin/mount.cifs
linux-y5qw:~ # chmod u+s /sbin/umount.cifs
4. Mount your cifs shares as a normal user:

Code:
martin@linux-y5qw:~> /sbin/mount.cifs //192.168.2.2/data /home/martin/data/ -ousername=martin
Password:

View 1 Replies View Related

Ubuntu Networking :: Unable To Mount CIFS

Jul 14, 2010

I am getting an error when I try to mount a CIFS file-system via terminal:

cifs_mount failed w/return code = -22

If I Places > Connect to server, it will open just fine. The share is also accessible from all the other computers on the network.

Google search brought me here to an archived thread which gave a different error number (!)

Desktop is Ubuntu 10,4LTS/Gnome; fresh install with no additional packages installed (so it's possible I am missing something but not sure what!)

View 1 Replies View Related

Ubuntu Networking :: IRC Channels - Benefits Of NFS Over CIFS?

May 14, 2011

I was asking around in some IRC channels earlier trying to develop some thoughts on how NFS is better than CIFS. I set up a FreeNAS file server, and that's where all of my data now resides on a pair of raided drives. That way my main desktop, which is kind of a power hog gaming rig, can be powered off since I pretty much live on my laptop now. Anyway, I began to tinker with CIFS and NFS. Since some family members in the household use Windows, I definitely need CIFS. But I wanted to bounce back to NFS too and check it out.

While I do think it's nice I don't have to worry about authentication to the NAS box when using NFS, it's still a little scary. Being that it's more of a trust method instead of actual authentication, truthfully all a user needs to get into your data is the path to your NFS share and a matching UID. I mean, am I wrong by saying this? Sure, it may seem like NFS is convenient, but this angle of it is a little scary. I just don't feel like that screams "secure."

On the flip side, you have CIFS, which uses a user authentication level. So I hit my little shortcut to my NAS and it asks me who I am. I log in and bam, I have connection. I can browse other folders on the share, etc. This is convenient because I do have a "public" share on here with a generic user. That way if friends come over and want to transfer something to me, I have them drop it in the public share and I later transfer it accordingly. Since there is a user level authentication, this to me seems a little more secure.

Speed wise I was a little concerned, as some users have said NFS is faster than CIFS. Well, they might be right. But I did a few bench tests here on my laptop, using the same exact share except one with CIFS one with NFS. I stayed in the exact same location and transferred the same 300mb file in each instance.

NFS - 1.7mb/s
CIFS - 1.5/mb/s

Not exactly enough to warrant a huge argument over, so I leave that argument along the road to be forgot about since it doesn't really have any bearing on this situation. I like things about both NFS and CIFS. I just want to know why is it "not optimal" to use a full blown CIFS setup even if you're using 100% Linux systems.

View 4 Replies View Related

Ubuntu Networking :: CIFS VFS No Response For Cmd 50 Using 9.10 Karmic Koala

Feb 2, 2010

I was also having a problem with the Shutdown / Reboot sequence taking ages due to using WiFi, WPA2 and mounting SMB shares. I wasted about 4 hours digging around before I finally realised that the solution involved Upstart. 1. Open a terminal and enter:

Code: sudo gedit /etc/init/network-manager.conf 2. Just below the description line add the following:

Code:
pre-stop script
/etc/init.d/umountnfs.sh
end script

3. Save the script and attempt a restart. I don't know if this will work for everyone, or even what version of Upstart you need for it to work, but it cuts my shutdown time from about 2 mins to about 30 seconds.

Note: This has been working for me about 90% of the time. Occasionally though I see that the script ends prematurely due to the TERM signal and I end up with the 2 minute wait again. I've added the following to the /etc/init/network-manager.conf file:

[Code]...

View 9 Replies View Related

Ubuntu Networking :: Only Root Can Write To Cifs Mount?

Feb 18, 2010

I'm trying to talk the studio I work at into switching one of the departments to linux. (likely kubuntu). So I'm trialling it, but having issues mounting windows shares.It's working great; all except that only Root can write to the mount. I've tried a few different things with fstab, no go.Below is my fstab so far, and you can see the mountpoints.

Code:
# /etc/fstab: static file system information.
#

[code]....

View 2 Replies View Related

Ubuntu Networking :: Cifs Share Mounts But Cannot See Files?

Mar 10, 2010

I have a Buffalo Drivestation (model HD-CELU2, 1tb) attached to my network.From my ubuntu desktop I can go to the menu, select "connect to server", put in the ip and share info, and it mounts perfectly.I can open the share and browse eadwrite, but when I try to mount it from a terminal or within fstab, it will still mount, but I cannot see any files that are on the drive. I have about 12gb of data on it, but like I said when I mount it using "mount -t cifs 192.x.x.x/share blah blah blah" I do not see any of the files.If I do a df I can see that the drive has files on it based on the free space available, but if I do an ls nothing shows.

View 7 Replies View Related

Ubuntu Networking :: Fstab Setup For Cifs Mounting?

Aug 12, 2010

Hopefully this'll be an easy one (but I wasn't able to find any other posts with the exact same problem).I'm connecting to a large hard drive at work. I can mount perfectly fine. The following is the relevant line in my fstab file:

//XXX.XXX.XXX.XXX/data /mnt/labdata cifs users,rw,exec,suid,dev,username=XXX,password=XXX,_ netdev,fmask=777,dmask=777 0 0

The problem is that when I try to cd to the correct directory, I get a permission denied error. I don't own the mount point, and there aren't general read/write permissions set. But if I change to superuser, I can access it no problem. I can read, write, make directories, etc. So the problem is with my computer--not the remote one.

Now, if I add the option uid=MYID, I can read and write just fine. The system makes me the owner of the directory on mounting. But that's not what I want--I'm trying to allow multiple users access to this file system. I want there to either be a neutral owner (e.g. root) with others having read/write access, or I want the owner of the mount point to be the user currently logged in.

View 5 Replies View Related

Ubuntu Networking :: Mount Cifs With Charset Errors

Nov 18, 2010

I've been mounting our windows network by opening nautilus and typing in the address bar:

smb://<servername>/share

and I am prompted to log in, all is fine.

however, I need to use some apps where I need to pick the folder from a file list, which I can't get to work with the above connection.

I then created the following line in my fstab file:

Code:
//<servername>/<share> /mnt/fileserver cifs credentials=/home/<username>/.smbcredentials,iocharset=utf8,file_mode=0777,dir_mode=0777 0 0

This appears to mount correctly, however there are some filenames on the server with the bullet character() in their name, and by mounting via fstab, the bullet shows as a question mark, but mounting from nautilus shows the bullet.

Anyway I can mount with fstab, and have all characters show properly in the filename?

View 1 Replies View Related

Ubuntu Networking :: CIFS Complete Directory Listings?

Mar 30, 2011

I currently have some windows (Win7 Ultimate 64-bit) shares automounted to my linux laptop whenever I am on my home wireless network. I have this functionality set up using autofs/CIFS and it works well, except for one issue: The directory listings for the mounted windows shares are incomplete, i.e. when listing the directories on the linux machine, it only lists a fraction of what is available in the actual share. One directory returns 28 of 51 files present, for example, and another 33 of 60. NOTE: None of the files on the windows shares are 'hidden' or in any way shared differently than the others.

View 1 Replies View Related

Networking :: Where Does CIFS Log Failed Mounts

Jun 22, 2011

I`m using cifs to mount a windows 2008 server share. I`m mounting it read only and using an rsync script which works quiet nice.

Recently I couldnt mount the windows share anymore, i didnt know the account iam using would go inactive if i never logged in.

Just where does cifs write a log if it can`t mount a windows share? If I knew where it is it would also be easier to find the reason if it doesn`t work.

View 1 Replies View Related

Ubuntu Networking :: How To Test Cifs Is Actually Mounted In Script File

Mar 12, 2010

I would like to be able to test that a network mounted cifs(samba) share is actually mounted in a script file to do backups. I want to do this so that when my automatic backups run they actually go to the remote location or fail. Currently, if there is a network problem that prevents the network share from mounting, the files simply get copied to the folder (e.g. /media/backupmount) and end up filling up my small local hard drive.

View 3 Replies View Related

Ubuntu Networking :: Slow Transfer To Mounted CIFS Share?

May 2, 2010

I have a Hitachi SimpleNET adapter (entry-level NAS device) on a Seagate FreeAgent 1TB external HDD (formatted ext3). The NAS device is connected over 100MB/s ethernet to a Netgear Wireless G router. All other devices connect using Wireless G. The NAS runs embedded Linux on an ARM processor and it runs vsftpd and Samba for file transfers.

If I transfer a large file using an FTP client the transfer maxes out at around 2.5MB/s. For my purposes that's good enough, especially considering the Wireless G bottleneck. If I transfer a file from a Windows 7 client (using samba) I get around 2.2MB/s. I know the CIFS protocol has more overhead than FTP and the difference in speed isn't that noticeable.Any combination of Ubuntu and Samba results in me getting less than 1MB/s. I've tried mounting it through Nautilus (GVFS) and /etc/fstab. FTP from this same Ubuntu client gets around 2.5MB/s.

I don't have root access on the SimpleNET to change the smb.conf. I've made a few adjustments to the mount options with no success. how to either speed up 10.04 as a Samba client or mount a folder on an FTP server locally? I've tried both curlftpfs and FUSEFTP. With curlftpfs any write operation results in an I/O error and it crashes intermittently. With FUSEFTP I never got that far and couldn't even browse the folder.

View 2 Replies View Related

Ubuntu Networking :: Cifs: Setting Times Of `file1': Operation Not Permitted?

Mar 14, 2010

I have a WD MyBook World NAS share mounted with the following options (I tried also other options):Code:cifs nouser,atime,auto,rw,nodev,noexec,nosuid,nodfs,nounix,guest,uid=0,gid=0,file_mode=0777,dir_mode=0777The cp -a, touch, etc. commands can change the file time if the root is executing the command (means NAS supports time setting), but as an user I can't change the file time - with an exception of changing the time to the current time. For an illustration see below:

Code:
.../tmp> ls -la
total 0

[code]....

View 2 Replies View Related

Ubuntu Networking :: File Corruption By Copy From Lucid To CIFS Share

Aug 11, 2010

There are a number of shares on the destination system; for the purposes of this thread I used D$ and F$ (corresponding to those partitions). These shares are mounted permanently via CIFS (entries in fstab) on the source system.Today I copied an ISO image of some 3.5 GB from source (S) to destination (D). md5sum on S gave a different checksum for the source ISO than that calculated by HashCheck Shell Extension for the destination ISO. I know some would argue that I shoud use the same md5sum programm for both images.

To circumvent that I 7zipped the ISO, verified it's integrity and copied that archive from S to D. Verification of the acrchive by the Win version of 7z failed.To see if it's a protocol problem I copied both ISO and archive of ISO to another D this time using sshfs (it's an Ubuntu server). Flawless copies.Then I copied both files to another Win-based server on the same network. Flawless copies.Mystified, I checked the partition's file system integrity (NTFS) where the errors occured. Minor inconsistencies (no errors according to chkdsk). So I copied both files again, once to another partition (D:) of the original D, once to that partition causing the error in the first place (F:).

(D:): archive corrupt, checksum okay
(F:): this time around both okay.

What the hell can I do to nail down the problem?! I don't even know whether it's a problem of the source system or the destination.

View 1 Replies View Related

Fedora Networking :: Mounting Windows Share With Cifs?

Feb 10, 2009

Following instructions that I received from the Fedora 10 Guide, I recently edited my etc/fstab file so that I could auto mount my Windows share. It worked the first time, but when I rebooted, I noticed an error saying that Linux could not not unmount the cifs shares. Eventually it did reboot, but now I cannot mount the share at all from fstab. When I run the command #mount -a and then #mount, my share is shown to be mounted although I cannot access it and there is no link to it on the desktop like there was the first time it mounted. I basically want my Windows share to be permanently mounted with read/write permissions. My Distro is Fedora Core 10 64 bit. How can I resolve this issue?

View 3 Replies View Related

Fedora Networking :: Windows CIFS Shares At Startup

Jun 3, 2011

After booting, the sda5 and sda8 mounts work fine, but the Windows shares haven't been mounted. If I enter the command: mount -a everything works fine. I don't know if this a timing issue, or something to do with the new systemd stuff, but it has happened in previous Fedora releases from time to time.

View 1 Replies View Related

Networking :: Way To Connect To A Cifs Share, And Only Being Prompted For One Password?

Jan 12, 2011

Trying to figure out if there is a way to connect to a cifs share, and only being prompted for one password? ie using the following:

sudo mount -t cifs //goanna/neddy -o username=neddy,iocharset=utf8,file_mode=0777,dir_mode=0777 /mnt/neddy
prompts twice for a password (sudo & the share password). Is there anyway to "catch" the sudo password for the connect? (Long shot!

View 1 Replies View Related







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