General :: Ubuntu Server - Set File Permissions For VirtualBox Shared Folder?

Jul 30, 2011

I have Ubuntu server with Apache 2, PHP, and various DBMSs running in VirtualBox on my Mac host for my web development work. To easily create/edit the files I'm working on, I mounted a directory from my Mac host via the VirtualBox shared directory feature to /var/www/. Every file I create on my Mac host has the following permissions on the on the Server: -rw-r--r-- 1 root root 6 2011-07-30 01:27 test.The problem is that most PHPscripts/frameworks/etc.need write access to some files.It is extremely annoying to have to chmod every new file/directory that needs write access.Is there a way to set the correct permissions for the files/directories automatically?

View 2 Replies


ADVERTISEMENT

Ubuntu :: File Permissions Of Shared Folder Using Virtualbox?

Feb 4, 2010

I am running ubuntu using VirtualBox on a Macbook Pro. I wanted to share my documents folder on the Mac in the virtual machine. I had no issues creating/mounting the share folder on ubuntu. However the file permissions for the shared folder are owned by root.

Code:

drwx------ 1 root root 1088 2010-02-04 10:18 Mac_Share/

I used the following command to mount the folder:

Code:

sudo mount -t vboxsf Share_Documents ~/Mac_Share/

I checked that the folder is mounted I can see what is there using

Code:
sudo ls Mac_Share/

How do I make the folder accessible to the user? Is there another -option needed to do this in the mount command?

View 9 Replies View Related

General :: File Permission And Shared Folder In Virtualbox

Feb 6, 2011

I have virtualbox installed, and arch set up as the guest OS now i have made my home folder shared folder with the guest OS but at first my arch couldnt read my home folder.i realized the permission setting for the home folder is set as rwx to myself, and nothing to everyone else.so i chmod -R 755 to everything and that seemed to have solved the problem now i want to make my home folder readonly to my guest OS. do i just do chmod -R 744 to my home folder? i already messed up something when i set 644 to everything in my home folder, as my dropbox stopped working so im afraid of something like that happening to me again, otherwise i d love to experiment

another question is, are .so files supposed to be executable? I googled it, and it seems they dont have to be.But my dropbox stopped working after the .so files in /home/myhomefolder/.dropbox got assigned 644 D:

View 2 Replies View Related

General :: Make A Shared Folder For Usage In Virtualbox?

Jul 16, 2011

I have a similar question: How to make a share folder of virtualbox if I have installed linux Ubuntu 10.10 in virtualbox machine virtualbox is my guest machine and Linux Mint is my host machine. I have installed VirtualBox OSE in Linux Mint and I have installed Windows XP/7, made a sharing folder from guest machine Windows XP/7. My host machine is Linux Mint/Ubuntu, I mean it is on my PC. How to make a share folder in virtual machine linux ubuntu 10.10 LTS in virtualbox OSE to host machine Linux Mint 11 Katya?

View 2 Replies View Related

General :: Virtualbox - Can't Create Directories In Virtual Box Shared Folder?

Jul 28, 2011

I'm mounting a shared folder in an arch linux guest on a windows 7 host in Virtual Box. The shared folder's filesystem is ext3 and is mounted in windows 7 with Ext2Fsd. I mount the shared folder at boot with this fstab:

D_DRIVE /home/tony vboxsf rw,gid=1000,uid=1000,auto 0 0

I believe my user in the guest OS has the right uid and gid:

[tony@kiwi ~]$ id uid=1000(tony) gid=1000(tony) groups=1000(tony),1002,(vboxsf)

I can create files and remove them fine, but I can't seem to create directories.

[tony@kiwi ~]$ mkdir foo mkdir: cannot create directory `foo': Protocol error

Its weird because the directory looks like its there, sort of.

[Code]...

View 1 Replies View Related

General :: Permission Denied When Accessing VirtualBox Shared Folder When Member Of The Vboxsf Group

Jul 7, 2011

I'm running Ubuntu 11.04 (guest) on Windows 7 (host) with the guest additions installed. I have an auto-mount folder that maps to my D: drive on the host which I can access using sudo ls /media/sf_D_DRIVE - however, even when my user (ross) is a member of the vboxsf group I get a permission denied error when attempting to explore it. I have restarted since adding my user to the vboxsf group.

This should work because I am a member of the group (which has rwx rights), so why doesn't it?

ross@panther:~$ ls -l /media
total 8
drwxrwx--- 1 root vboxsf 8192 2011-07-03 22:24 sf_D_DRIVE
ross@panther:~$ ls -l /media/sf_D_DRIVE/
ls: cannot open directory /media/sf_D_DRIVE/: Permission denied

[Code].....

View 1 Replies View Related

CentOS 5 :: Shared Folder Permissions ?

Jan 17, 2011

I have a SHARE folder with the following permission:

drwxrws--- 2 sales sales 4096 Jan 17 05:11 SHARE

We use WinSCP or SCP to transfer files over to the SHARE folder. The files that are transferred always have the following permissions:

Is there an elegant way of allowing users to copy files over and have the permissions changed automatically?

So that it would look like:

Is creating a cron job to change the permissions from time to time the solution?

View 1 Replies View Related

Ubuntu :: Change Permissions Of Windows Shared Folder

Jan 31, 2011

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?

View 2 Replies View Related

OpenSUSE :: After Update To Ubuntu In VirtualBox Shared Folder No Longer Mounting

Oct 6, 2010

I recently applied a bunch of updates to my guest OS (Ubuntu) inside VirtualBox (NOTE: NOT updates to virtual box. Updates to the OS) and now on startup, I get the error:

"An error occurred while mounting /media/share. Press S to skip mounting or M for manual recovery"

I tried a fix which said to comment out the mounting in /etc/fstab and instead put it into rc.local, but this does not work.

Also, when I press "M" to try it manually and type:

mount.vboxsf -w mysharedfolder /media/share

I get the error:

mount.vboxsf: mounting failed with the error: No such device

But before I updated Ubuntu, that shared folder worked perfectly!

View 1 Replies View Related

General :: Change Folder Permissions Without Changing The Permissions Of The Files Within The Folder?

Aug 11, 2010

How do I change folder permissions without changing the permissions of the files within the folder?

View 6 Replies View Related

Ubuntu Networking :: Samba File - Access Shared Folder - Error: Failed To Retrieve Share List From Server

Sep 24, 2010

I have been having off and on issues with my samba file shares. I am sharing a NTFS formated hard drive where the mount point is in my home directory, as well as a printer connected via USB. I am to the point where printing works (using it as an ipp print share, samba is configured for it, but I don't know if it works or not), and I can access the shared folder from Windows, but I can't access the shared folder from any Ubuntu machine. I get the error:

[Code]....

View 5 Replies View Related

General :: File Permission - User Can Create Files/folders In The Shared Folder

May 4, 2011

Is possible to make a folder permission like below?

-User can create files/folders in the shared folder.

-But the files/folders they created, cannot be delete/change by em.
(only can be delete by root users)

-Each new files/folders created will auto owner to root only.

View 4 Replies View Related

General :: File / Folder Permissions And Groups On Linux With Apache?

Jun 26, 2010

I'm trying to learn about permissions on linux webserver with apache.Some clues to the system: The server I have to play around with is Fedora based. Apache runs as apache:apache. To allow for e.g. php to write to a file the file needs to be chmod 777. 755 is not sufficiant.What I'm wondering is basically how set up permissions like they should be on e.g. a "shared web host".My main problem is that if I set a permission so that one user cannot access anothers home folder, then apache can't read from the public_html folder either.

To keep the users out I need to set chmod 700. But to let apache to read I need to have at least execute on world,so a 701 basically works, but won't let some users in.So I'm really stuck on what to do. Have been concidering adding the apache user to the frous grours
below to avoid having to add the world execute flag, but is that a bad thing? Should it be the other way around, the users in the groups below should also be in the apache group?I was aiming at having 4 groups:

1. webapp: same as dev_int, but is the only one that can go inside the webapp/live folder to e.g. do an update from the repo.

2. dev_int: can read,write and execute everything in the "web root", including the two below, but nothing outside of the web root

3. dev_ext: can read write and execute in all client folders, but cannot access anything outside of the webapp root

4. clientsBasic ftp accounts. Has a home folder with a public_html, but cannot access any other home folders

View 1 Replies View Related

General :: Linpus Lite - Change File / Folder Permissions?

Aug 19, 2010

I own an Acer Aspire One which has Linpus Lite installed. Last night I attempted to delete a couple of files only to find they are read only and that I cannot change the permissions by right clicking and changing the drop down menu from read only.

These aren't protected files or anything, they are files I've downloaded or created myself (one using the onboard web cam to test it).

I attempted to play with Terminal for a bit but as a newbie I got easily lost, not like I can fall back on command prompt knowledge from Windows!

I think it's somehow connected with the user which accesses these docs or tries to change the permissions. I also tried with an su- which meant I was using Terminal as root, however, I wasn't sure how I could then set the permissions for a particular file/folder within the file system.

View 14 Replies View Related

General :: Samba Shares And File And Folder Permissions - No Access To Others

Jul 13, 2011

i have 3 shares on my samba. i have users - user, manager and boss projects is RW to everyone reference is R to everyone RW to manager and boss Proposals is RW only to boss, no access to others However when boss logs in and creates a directory in projects share, the directory can only be renamed bu users and manager, and directory contents are read only for users and managers, even deletion / rename is denied. How can i make sure that when ever boss creates a directory in projects, it retains base folder permissions and is writable to user this is my samba file... i am using red hat 6.1 with samba 3.5.6 (i think)

[Code]....

View 1 Replies View Related

General :: Strande Folder Names In Knoppix And File Permissions?

Oct 4, 2010

I am trying to rescue some files on a Dell Laptop running XP that is in a BSOD state. I can boot up Knoppix just fine but all the files are read only but get the error: The remount command failed. Maybe there is another process accessing the filesystem currently.Also when I look at the files and folders on the Knoppix CD they look really odd. See attachment

View 3 Replies View Related

OpenSUSE :: Virtualbox Guest Additions: Set A Shared Folder In 11.2 Guest

Mar 4, 2010

OpenSUSE installed in a Virtualbox Virtual Machine and I want to set a shared folder.

1 - Set up a Virtual Machine and install OpenSUSE 11.2

2 - Create a shared folder on host (HostFolder)

3 - Setup the shared folder in Virtualbox Via the Virtual Machine details or via Devices > Shared Folders...

4 - Install dependencies for running the Virtualbox installer You need to install the right development kernelpackage for your machinetype (use 'zypper search -i kernel' to see what's installed) sudo zypper make gcc kernel-source kernel-hosttype/default-devel

5 - Run the Virtual Machine and go to Devices > Guest Additions This mounts an iso image in your OpenSUSE guest.

6 - Open a root terminal and run

cd /usr/src/linux
make oldconfig && make prepare && make scripts && make dep
cp ../linux-obj/$HOSTTYPE/default/Module.symvers .
make prepare

* A commenter on previously mentioned thread says this step is unnecessary but it doesn't work without on my system. I suggest trying step 7 first and returning to step 6 if that fails. *

7 - Run ./VirtualboxLinux yourhosttype .run from the mounted iso image.

8 - Create shared folder in OpenSUSE (GuestFolder)

9 - Test with sudo mount -t vboxsf HostFolder /home/user/GuestFolder It works? Great! Let's set up the system so it automounts for your regular useraccount instead of root-only access.

10 - Add this line to /etc/fstab HostFolder /home/user/GuestFolder vboxsf defaults,uid=1000,gid=1000 0 0

11 - It works for me but if it still doesn't automount after a reboot; sudo mount -a

View 1 Replies View Related

General :: Unable To Share Folder In Suse 10.0 / Folder Defaults To Not Shared

May 13, 2010

I wanted to enable file sharing in for one of my folders under the home directory. I noticed that the 'not shared' and 'shared' always defaulted back to 'not shared'. And now I see what looks like an electrical plug icon symbol over the folder icon symbol like I might see used for some of the root folders. What does the new icon indicate about the folder attributes and why does file sharing default to 'not shared'?

View 1 Replies View Related

Ubuntu :: Move/copy A File To A Shared Windows Folder?

Mar 23, 2010

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

And here is what I am trying to accomplish;

Code:
mv /var/lib/mysql/RSecuredData.csv smb://corpserver/d$/Data/Common/Secured%20R%20Reports/$(date +%Y%m%d)_RSecuredData.csv

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

View 9 Replies View Related

Ubuntu :: No Permissions To Put Brushes File Into Folder?

Nov 23, 2010

I opened up my Gimp brushes folder so that I can put a brushes file into the folder. Would not let me do it. Said I am not the owner and do not have permission. I right clicked inside the folder, same thing permissions grayed out, not owner. No apparent option to log in or do anything to gain permission. What can I do?

View 1 Replies View Related

Ubuntu :: Cannot Change Folder / File Permissions On Entire HDD

Apr 17, 2010

I have two drives in my computer: a 160GB and an 80GB. The 80 holds Ubuntu, the home folder, etc. The 160 is for other files. I need to change the read-write permissions on the 160, but I can't. If I do it through the GUI (right-click>permissions) it just changes back instantly. If I do it through the command line (even with sudo), it has no effect.

View 5 Replies View Related

Server :: Ubuntu 10.04 - Shared Folder Access Without Authentication

May 25, 2011

Heres what I have and what I am looking to do. I have a PC with a single core 2 Ghz Pentium processor and 1 gb of RAM. Its pretty limited in what it can do and run. It has two physical HDDs one a 250 GB SATA and the other a 160GB SATA. One the two hard drives I have the following partition structure:

160 GB HDD
28 GB Ubuntu OS Partition
2 GB Swap Partition
130 GB Free Partition (EXT4 but empty)
250 GB HDD
250 GB Free Partition (EXT4 but empty)

What I would like to do is the following:
1. Strip down Ubuntu 10.04 to where only the bare minimums run and system resources (Since they are so scarce on this system anyway) be readily available
2. Have the system run solely as a Samba File server for all other computers in the house to read and write to
3. Allow other "known" systems to access the shared folder without authentication, but any system with an unknown name, should have to authenticate first
4. Have the 130 GB from HDA and 250 GB from HDB, be presented as one network drive of 380 GB as opposed to two of 130 and 250 gb respectively

Are these things that are possible for a person of mid level understanding of Linux? How would one set about achieving all of the above goals?

View 3 Replies View Related

CentOS 5 :: Can't Change File/Folder Permissions?

Jul 7, 2010

I have two users: test1 and test2 When i logged in as test1, I can not change the ownership of a file to test1:test2 it says: Operation not permitted

View 2 Replies View Related

Server :: Samba Configuration And Shared Folder

Mar 27, 2010

The problem I am facing is, with the Samba server configuration.I have configured Samba server with a folder shared between server and client machines. I have tried downloading data from the shared folder on the server to the client machine which is successfully downloaded, however I am not able to upload any data to the shared folder in the samba server.

View 4 Replies View Related

Ubuntu Servers :: Folder Permissions Automatically Set When Creating File

Apr 27, 2010

I have a little problem: I have a share folder on Ubuntu server: - Dump That folder is share with SAMBA and everyone can put files on it
My problem is the following: When someone create a folder, the folder permissions are automatically set with:
(let's take my username: Yann)

Owner: Yann
Group: Yann

Clearly that's wrong.. I want the Group to be auto set has "users" so everyone can access the folders on that share. Anyone know how to change this ? chmod and chown is getting a bit boring

View 2 Replies View Related

OpenSUSE Install :: Change Folder / File Permissions?

Jul 28, 2011

I've migrated to Suse from Mandriva. I installed all my backup folders/files to my "home" folder but they have come up locked. I remember in Mandriva to change the permissions I pressed Alt F2 and then entered a command. How do I do it in Suse?

View 8 Replies View Related

Server :: Windows Machine Cannot See Samba Shared Folder

Apr 30, 2009

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.

View 14 Replies View Related

Server :: Group Permissions With In Folder

May 30, 2010

I am running into a Brick wall with this. And thought that the knowledge and expertise here would be a good place to seek help.I have CentOS 5.4 server running Samba on a WinBloZ network. I have the groups all setup and that aspect works fine. But here lies the issues.In a shared directory with group permissions set if someone on the group with permission to this directory creates a file they are the only person that can edit / modify that file. That file need to be editable by the entire group. But the only way thus far I can achieve this is to manually chmod the files in the directory. I know there is a way to fix this, but I have not found it. Can someone please explain how to make this work for me.

View 1 Replies View Related

Server :: User Folder Permissions For FTP?

May 4, 2010

I want to host a public FTP on my server, but i cannot get it so that people can read and write but not delete ANYTHING from it.
I have tried:

chown root /home/ftpdir
chmod 1777 /home/ftpdir

but people can still delete the files in it, i have no idea what to do next. that's the only thing i can find on Google about how to do it.

the users are logging in with the same Account, i cannot make a new account for each one.

View 1 Replies View Related

Ubuntu :: Shared Folder Is No Longer Shared After Rebooting?

Aug 13, 2010

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?

View 3 Replies View Related







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