Fedora :: Mount Windows Shared Folder / How To Change Ownership?
Aug 18, 2011
I mounted a shared windows folder from my LAN, and I changed the mount point's ownership on Linux using command line `chown me:me windir`. but when I enter the mount point, and to create files, it mentioned me 'Permission denied', but the file is actually created on the windows' folder, and its ownership is root:root.
this problem puzzled my programs going to run on it. cause them will detect a system returned error, and terminate in a abnormal way.
I know I asked this question before, but I was running CentOS and I used "chuser" and that worked just fine, but for some reason in Fedora it doesn't exist. Is there another command that works in Fedora?I'm tring to change all files, and folders in my "www" folder to "apache:apache"
please help to mount windows storage server 2008 shared drives and folders( without password) to rhel ent server 6 through acl. I want restricted access to those drives and folders.
Now if a user (included in users) creates a new document in the visible folder, that will be
Quote:
-rwxrwx--- 1 root users 0 2010-03-02 14:19 new file
While I would like it to be
Quote:
-rwxrwx--- 1 user users 0 2010-03-02 14:19 new file
Mounting encfs without the option uid='0' gives same results with only difference that instead of root the owner is the user who mounted encfs. Also copying a file owned by different user rather than root goes to the same: for example having in my home a file like
Quote:
-rwxr-x--- 1 me users 0 2010-03-02 14:30 myfile
and trying to copy it to the encrypted shared folder with
Code:
sudo cp -a -v ~/myfile /somewhere/visible
will give something like
Quote:
cp: failed to preserve ownership for `~/myfile': Operation not permitted
And the copied file on the shared encrypted folder will be as usual:
Quote:
-rwxrwx--- 1 root users 0 2010-03-02 14:30 myfile
Is there a way to mount encfs in order to preserve ownership?
I'm in an organization where each user has a Windows network username, and a central windows server with a folder for each user. I can access the folder using SAMBA and my (windows) network user name. I want to change the permissions (sharing settings) for my folder on this windows server - using only Ubuntu.
Had i been using windows I would simply right-click on the folder, go to permissions settings and add/modify users in the list.First of all, is it even possible to do this using Ubuntu?
I spent all day learning some concepts of Samba which I left while preparing for RHCE.One of them is how to permanently mount (fstab entry) windows shared folder.Manually mount command is running fine for me.
I have two computers running Ubuntu 9.10, both have one shared folder. These were set up via Nautilus.
On computer 1 I can see and use the shared folder of computer 2 just fine.
On computer 2 I can NOT see the shared folder of computer 1 anymore since recently. I has worked in the past.
Some more information: the name of computer 1 is "daniel", the share name is "gedeeld". So the address of the shared folder of computer 1 would be smb://daniel/gedeeld/ Opening this address in Nautilus works fine on computer 1 (that shares the folder), but results in an error on computer 2.
Error: failed to mount Windows share. Please select another viewer and try again.
I've tried using chown to change the owner on one of my folders - but to no luck? This is what I run on the terminal - and there's no output. And when i view the permissions of the folder it's still set to root?[URL]
Linux OS : Fedora 10 (No graphical mode)Windows OS : XP and Windows Server NT...I am able to access from my windows to linux using following step//fedora10 ip username of admin and password...I am able to view the admin and shared printer of fedora 10.When i try to enter in the admin folder i am not able to access it. It is giving error "Access is denied".
I'm running CentOS 5.3 fully upgraded on a test server. I'd like to create a virtual machine, and host the VM files in a shared folder located in another windows server.
I can access this folder usign the graphic browser, but I'm inable to mount it in a local folder.
I tried with mount -t smb //server/folder /localfolder/
I have mounted a shared folder in Ubuntu in VirtualBox, but I have to remount everytime I restart. how do I make this command run (for mounting) on startup or make it permanent?
I use F10 at home and while away from work on my laptop. Recently I could get the VPN sorted out ( I can now connect to the vpn (ppp0) server at work from home or anywhere else). I am trying to mount a windows folder that is on the work server on my F10 box at home through the VPN connection that is first established.What I know about the windws server
servername sharename username password
When I try this
sudo mount -t cifs //pxxxx/home/abcd /mnt/dir/ -o username=abcd,password=xxxx
I get this error
mount error: could not resolve address for pxxxx: Name or service not known No ip address specified and hostname not found
I think the VPN connection is established successfully. I have a ppp0 connection under ifconfig with an IP address after vpn connection is established.In windows I just map the network drive (\pxxxxhome) username=abcd, password=xxxx and mount the folder as "abcd on pxxxxhome"
I export a folder via NFS service.I able to mount this NFS share in another Linux machine.The folder has many files.The ownership of these files aren't belong to single user. There are more than 10 different users' files in the folder.I am trying to migrate all these files to another folder. When I use "cp -a", the new files' ownership are all reset to the logon user.
Both NFS server and client machine has exactly same copy of users/groups as these 2 machines refer to same LDAP directory service. When use "ls -al" to list the NFS share in client, I can see the files ownership is exactly the same as the NFS server.Is that possible to preserve the ownership of files while doing such migration? The "cp -a" fail to deliver the job.
I was wondering if theres a way to create a folder that would be accessible when I boot with windows or ubuntu? Is there some shared location I can place this folder?
I installed ubuntu in a desktop pc and without configuring anything i had my network working: 1 windows 7 pc which is sharing a folder with other 3 windows pc and with my ubuntu pc. Yesterday as every day before i entered into win7 shared folder from ubuntu but it asked me for a password which was not set up in win7 pc.
i had created a thread in desktop environment and had received no comments, so posting it here again.
Had installed ubuntu alongside windows xp in dual boot. everything was working fine untill last week.
last week i did share a folder on NTFS partition from ubuntu to be accessed by my laptop which runs XP. i could access the folder after i ran this command from terminal "sudo smbpasswd -a myusername". After this i cannot boot to windows. it shows up windows screen and reboots again. ubuntu works fine. what do i do to get back windows XP to working again?
1. I installed Windows server 2008, with Active Directory, DNS, DHCP. 2. I installed Ubuntu 9.10 and joined it to the domain. Everything is ok. I can see the Ubuntu in the active directory, it gets an Ip address from the DHCP. 3. I create a shared folder on the server 2008. 4. I can access the server from Ubuntu ONLY by going to "Connect to Server" and entering the data to connect.
My problem :I would like to have the shared folder showing up when Ubuntu boots up or when the user is logging IN on the Ubuntu host. I have tried many things without success. I know how to do it so this is fine. BUT i would like a user to be able to access the shared folder without having to do anything (especially for users who are not familiar with computers). What is the best way to do it ?
I have everything networked properly, as far as I can tell, both computers see each other... I can use putty to port in and use my Linux machine (Debian 4). When I go to map network drive on my XP machine, I can see the computer, but not the shared folder. After some googling I found that i have to create my Windows user name ont he Linux machine as a user as well. Unforunately, that user is 'Administrator'. So I told Linux to force user, and it created it, and did smbpasswd command and added the user to the samba list. Still nothing.
I've created a share using Nautilus on an Ubuntu 11.04 machine and can access it OK from both my Win 7 pc and partner's WinXP machine. We both have Ubuntu accounts and use those to access the share. When an Excel spreadsheet is saved on the WinXP machine the ownership changes and it can then only be opened read-only on the Win7 machine. A further complication could be that the Win7 machine has OpenOffice and the WinXP has MS Office. I'm guessing that XP + Office doesn't really care about or see the permissions, but Win7 + OpenOffice does. Should I be using the share with the same username from both PCs? Is my whole approach misguided?
I am able to view my windows network from my UBUNTU desktop after being prompted for a username and password to the windows network. No problem. But how can I accomplish this from the command prompt?
Here is my windows directory; smb://corpserver/d$/Data
Basically taking a csv file and moving it from mysql directory on my Ubuntu machine to a network folder on my windows server. (Windows Server 2003)
When I try that command from the command prompt I recieve;
Code: mv: cannot move `/var/lib/mysql/RepoSecuredData.csv' to `smb://corpserver/d$/Data/Common/Secured%20Repo%20Reports/20100323_RepoSecuredData.csv': No such file or directory
I have been learning about P2P networks and have been experimenting with all kinds of operating systems. I figured out how to share and access Windows shared files on other Windows computers.
Now I'm trying to access Windows shared folders from Linux operating systems.
Here's the deal. I created a shared folder on Windows 2000 Professional. I want to open it from Kubuntu 10.04.
I am not running Virtualbox. These are separate operating systems on separate computers.
I have two partitions: one for Ubuntu 64-bit and another one with the format NTFS only for keeping documents. I have shared one folder of this NTFS partition, but every time I reboot the PC (or shutdown and start again for that matter) the folder is no longer shared.Why?How can I prevent this folder to be un-shared when I reboot the computer?
I've recently started setting up a new wordpress install on a new dedicated server. The system is installed on a linux debian 5 setup and running on apache.Having only ever run shared hosting before this setup is a much bigger leap than expected, but after a couple of weeks doing bits here and there I've finally got the setup running, and all appears ok.My issue is as follows:On the server the default owner of all the installed folders is "root"In order to allow media uploads, plugin installs and upgrades and wordpress auto-upgrades I've had to Chown the owner of the entire wordpress directory to the server as follows:Chown -R www-data:www-data /usr/share/wordpress/
Can anyone tell me if this is actually secure? (clearly if the server is compromised the folder would be writeable!) If not would I be better changing the owner back to root (or even creating a new user for the wordpress folder?), then chown just the uploads, theme, and blogs.dir folders to allow media uploads, upgrades, etc from with the wordpress, and then only chown the entire wordpress install when upgrading or installing new plugins, themes, etc.?Just a bit lost when it comes to the ownership of these folders as changing these ownerships is the only way i can get the system functioning 'correctly'
I'm a bit of a Linux newbie so bear with me. I had a problem with Gnome-DO not starting on start-up. Searching this issue suggested that Gnome-DO was trying to start before a service that it needs to start and a script to fix the problem was provided:
Code: !/bin/bash sleep 10 gnome-do When I try to save this file (using gedit) to any folder in my home directory,
Installed Fedora 10 on my Downloader (just a name for the pc as its mainly used for torrent downloading) computer. But I cant access the fedora shared folder from my windows XP. Accessing XP shared folders from F10 is fine. I have another 2 computer where I have installed Ubuntu 8.10. I have no problem accessing either of the Ubuntu system from my XP computer. The F10 computer comes up fine on my Workgroup list of xp. I double click to go into the F10, a login window pops up and askes for username and password. I used the normal username and root / password to log in. But it keeps popping up for password again and again. BTW, Recently I Installed Win7 Beta on the Windows computer and Surprisingly I can access the Fedora 10 computer shared folder just fine from Win7. But I need to get it working under windows XP.
Here is my smb.conf file Code: # Global Settings [global] # Network Related Options # workgroup = NT-Domain-Name or Workgroup-Name, e.g.: MIDEARTH # server string is the equivalent of the NT Description field netbios name can be used to specify a server name not tied to the hostname. Interfaces lets you configure Samba to use multiple interfaces. If you have multiple network interfaces then you can list the ones. You want to listen on (never omit localhost). Hosts Allow/Hosts Deny lets you restrict who can connect, and you can specify it as a per share option as well
workgroup = THEMATRIX server string = Samba Server Version %v netbios name = MYSERVER ;interfaces = lo eth0 192.168.12.2/24 192.168.13.2/24 ;hosts allow = 127. 192.168.12. 192.168.13 .....
I've installed Fedora 12 on my laptop and when I share any folder and try to access it over the network using smb://<ip-address/<folder> it says "file or folder smb://..... does not exist"
Now if I simply try to access - smb://<ip-address> on the file browser it shows me shared folders but when I double click I get the same error.
I've SELinux disable, Firewall disable but I'm still not able to access these folders.
I did the exactly same samba configuration on openSUSE and I'm able to access the folder but not with Fedora 12.