Ubuntu :: Setting Permissions In File Sharing?
Sep 1, 2011
2 computers, Ubuntu 10.04 and Ubuntu 8.04. I have 2 folders named In and Out. Out I have set up on 10.04 for guest use. I am able to transfer files to 8.04 from that folder. Trying to set up In for a specific user to modify files. This requires a login. Both computers have the same user name and both have the same password. I set the file permissions automatically from 10.04 when electing to share In for allowed modiying. When trying to access In using 8.04, a password request window is generated with the user name already showing, and the domain name filled in as "Workgroup". The user name that shows is my login name, by the way.
View 2 Replies
ADVERTISEMENT
Apr 2, 2011
I'm trying to set up file sharing using Backtrack 4 R2. I installed...
kdenetwork-filesharing
libsmbclient
samba
samba-common
smbclient
I logged out and logged back in but whenever I right click on a file and go to the sharing tab it says that "You need to be authorized to share folders". I can click on the "Configure File Sharing" button but all that does is gray out the button and nothing happens. How do I get this to work?
View 5 Replies
View Related
Jan 6, 2010
have a home network with two desktops and I also have a netbook. The netbook and nettop (desktop) both run UNR 9.10 and my other desktop runs Ubuntu 9.10 with all updates in place. So all 3 machines are hooked up to my home network via wireless router (secure and password protect). I want to set up file shares between machines in order to move files between machines and also to have all machines connected to and accessing one shared printer. Fair enough. According to Ubuntu help I click on a folder, then properties then the share tab and click all checkboxes and give the share a name. Then I do likewise on my two other machines. So in theory once every machine has a share setup then you should be able to access via the other machines by simply going into Network, finding the machine, opening it and mounting the shared folder. In some cases I see the other machines but when I click to open them it says "unable to mount location". So now I would like to ask... where should I look to resolve this? The wireless router settings? Some type of network or security settings on each of my machines?
View 6 Replies
View Related
Jun 26, 2011
I have a file server running a cronjob to reset file permissions on a regular basis. I was thinking, I wonder if there is a way to do the chmod and chown command in a single command, as I always have to do both on the same folder, the way that you can do "chown root:users Uploads" instead of having to do two separate commands for chown and chgrp.
Then I got to thinking, are these commands even necessary? Every file copied or moved into these folders by any user needs to be something like "chmod 750" and "chgrp root:users", so rather than running a cronjob to do these modifications at regular intervals, there ought to be a way to set the folder permissions so that any files contained within will have these permissions.
The problem arises because users create documents, then a supervisor with elevated privileges can move those documents into a shared folder, however the permissions are wrong, they are user1:user1 for the owner and group and the other users can't read the file until a cronjob changes the group to be users. This has actually been acceptable, but certainly there is a better way to do this.
View 7 Replies
View Related
Jul 7, 2009
i am trying to set the file permissions for the log files "/var/log/Xorg.0.log" and "/var/log/gdm/:0.log". These files seem to be created when a user logs into a whokstation (my guess so far). I am trying to comply with a security mandate that all log files in the directory /var/log are set to 0640. The two mentioned files always seem to have the permissions 0644, does anyone know where and when these filea are created and how I might set the permissions when the files are created
View 1 Replies
View Related
Nov 15, 2010
I'm having issues setting up file sharing between two Linux machines. I've tried the forum cookie cutter answer of "right click folder, sharing options, share, allow others to write and edit, allow guest accounts", but I simply cannot get my two Ubuntu 10.10 machines to see each others shared files. I HAVE been able to download and use the program "Personal File Sharing", and with it I CAN share the "Shared" folder between both machines. I'd prefer to learn the correct way to link these two boxes up though, and be able to share more than 1 directory. Am I missing any programs to complete this link? Do I need to use Samba? I've tinkered with it, and I can get both computers to see a workgroup name I set up, but cannot get them to view each other in it.
View 9 Replies
View Related
Jan 6, 2011
I have system at work I am setting up that runs on linux, it was powered up back in september but we didn't get the details to configure until this week, unfortunatly var filled up with 100% spaced used due to a log file that keeps being written to until its intizilized, I can't just delete the file so (will not be recreated), I pulled it off and took it home and split it into a smaller file (from 740mb down to a 15mb chunk)I'm really just a linux newbie so can someone explain to me what the permissions are on the current file and then what chmod would make smaller file the same. clusternet.log is the orginal and clusternet1.log is the one i made from split. I know its read, write and execute (whats the r write after x on clusternet.log?) but I'm not sure on what it means in the position its in, the clusternet.log should have permissions only for root correct?
Code:
-rw-r--r-- 1 luke luke 16613376 2011-01-06 20:10 clusternet1.log
-rwxr----- 1 luke luke 740130816 2011-01-06 06:39 clusternet.log
View 3 Replies
View Related
Jul 23, 2010
When setting up NFS what type of Linux file and directory permissions should you be familiar with?
View 1 Replies
View Related
Jan 25, 2010
I have two NFS mounted dirs that the users want specific permissions set upon creation of dirs/files, independent from any other machine on the network.
View 1 Replies
View Related
Jun 23, 2010
I want to copy a file into my Root folder but I cant.what should I do?
View 2 Replies
View Related
Jul 7, 2011
Im using WPA with a TKIP pre-shared key...Can a client pc im sharing my key with access my files if im not file sharing? Router config?
View 2 Replies
View Related
Jul 24, 2010
I have 4 hard-drives in my tower.Hard-drive 1 contains all the system files.
hdd 2 contains all music
hdd 3 contains video
hdd 4 contains misc data
The root of the system "/" is on drive 1, and I used fstab to mount hdd 2 - 4 under /storage/music /storage/video and /storage/misc I want /storage/misc to be readable and writable by people on the LAN. The other 2, I would like to be "read" only.
what should I set the permission of /storage to and what should i put /storage/misc to.If I put /storage/misc to 777 (chmod 777 -R /storage/misc), will people ever be able to go up the "tree" and ever get access to "/"?
View 2 Replies
View Related
Apr 25, 2010
I'm trying to run my own little host for fun (yes I know the implications and crappy bandwidth is a problem but that's a problem I will deal with later).The problem is that I want BOTH the apache-user "www-data" and the ftp-user "ftpuser".I want both to be able to read/write on the folders I make for each user.
View 6 Replies
View Related
Oct 30, 2010
I'm on Ubuntu 10.10. I installed Samba and went Administration > Samba. Added a folder [Videos] to share (this folder is on an ext partition). I then went to the folder [Videos] Right+Click > Sharing Options. I selected 'Share this folder', I put in a name and comment, checked Allow others to create and delete files in this folder and checked Guest Access.
When I view this shared folder [Videos] from my Windows PC I can access it with no problems but when I try drill down into sub folders I get a permissions error. [Attached a screenshot of the error]. If I share each folder separately then I can access them but obviously I'd like to share a folder and all it's contents.
View 9 Replies
View Related
Oct 16, 2010
Finally I managed to install my printer/scanner drivers.The last thing I need to do is to add the following two lines to 40-libsane.rules (which is a read only file):# Brother scanners ATTRS{idVendor}=="04f9", ENV{libsane_matched}="yes".How can I change permissions for this file or add these lines without changing permissions?
View 2 Replies
View Related
Feb 12, 2011
I recently installed ubuntu on one of my computers and am trying to get all my sharing worked out so I can access stuff with my windows machine. I'm still very stupid when it comes to linux.
Setting up sharing with Samba, I got my /home/user/media folder to share just fine. However I made a folder located on my second drive that I would like to share.
I have this entry for it in my smb.conf
Code:
[80GBshare]
comment = /media/Sifl_80GB/Shared/ folder share
path = /media/Sifl_80GB/Shared
[Code].....
the second drive is mounted on /media/Sifl_80GB and it was formatted as ext4.
My windows machines see the 80GBshare entry but I get the error "network path not found" when I try to open the folder. Does this mount need to be listed in my fstab for this to work correctly? I'm noticing something in the comments of the smb.conf for auto-mounting a cdrom drive when a cdrom drive is accessed by adding a fstab entry, so I'm wondering if this needs to be done with my second drive?
View 4 Replies
View Related
Aug 14, 2010
I can connect & share my dual-boot PC with no problems under WinXPPro using wired or wireless. (I've another thread going trying to get the wireless-n usb adapter to work.) Two questions so I can get the wired shares to work. I want to copy beaucoup files from the Win7 PC to the dual-boot PC. When booting into XP, no problems. When booting into Ubuntu 10.04, nothing. I can see the Win7 PC but can't access it. My two questions then are these. First, is there some switch to enable fire & drive sharing under Lynx as there is under WinXP / 7? (Samba??) Second, how does one set the IPv4 address? Under WinXP it's one address and under Lynx it's another.
View 1 Replies
View Related
Dec 29, 2010
I recently got an old computer to use as a server and I have a whole list of things I want to do on it, but I'm having difficulties.When I installed the server, I installed AMP, FTP, Samba, CUPS, and some other items. I made a user account called 'nessdan' which (currently!) is in these groups:
www-data adm dialout cdrom plugdev lpadmin sambashare admin
The www-data group was added because I wanted to FTP my site files into '/var/www/' . Okay, that ended up working out for me. This is where things got sticky. I installed PHPMyAdmin and the files went to '/usr/share/phpmyadmin/' . I wanted to install a new theme so I downloaded it onto my Laptop, then logged in via FTP but couldn't transfer files into there! It turns out the folder was owned by 'root' and was in the group 'root'. The only thing I could come up with was to change that folders permissions so the owner was 'nessdan' and the group 'admin'. I was going to do that to the entire /usr/share/ folder but I didn't know whether or not I should be changing the permissions in the first place.
But the the trend continues! I have my print server setup and working but I wanted the server to hold the Windows drivers, so I went to '/var/lib/samba/' to do some work but noticed that a lot of the files' permissions were locked down to read only and the owner and group were 'root' . I ended up doing a 'chmod 775' and changing the owner and group to 'nessdan' and 'admin', respectively. Well I transfered over the files but now the service nmbd isn't working. The good news is, I expected to mess something up along the way and had already planned on reinstalling Ubuntu Server 10.10. I've only had the server for 4 days now and I knew from the beginning I'd be wiping it clean. I want to know how to set this thing up proper and the biggest problem is getting access into folders so I can FTP into them.When I do wipe my PC clean and start anew, how should I go about the changes that I did before (PHPMyAdmin, Samba Driver Folder)?
View 2 Replies
View Related
Mar 20, 2010
This has already been asked, and answered here: [URL] but there is one problem, this requires a window manager, and network-manager. I am using Ubuntu 9.10 Minimal with no window manager, and i want to recreate the exact effects of the second post in the above thread.
I have one desktop (Ubuntu 9.10 Minimal) with a USB wireless adapter (wlan1) and an ethernet port (eth0). I want my second desktop (also 9.10 Minimal; connected to desktop 1 via ethernet on eth0) to recieve the connection through desktop 1's wireless. I realize this is rather easy with network-manager, but I am not sure how to go about it through command line.
View 9 Replies
View Related
Mar 15, 2010
how can iuse internet of linux pc to windows pc
View 7 Replies
View Related
Nov 29, 2010
I have just formatted a partition that had contained a windows OS, it is now formatted to ext4 and is dev/sda1 dev/sda2 contains my Ubuntu OS and all files although the empty partition shows up in Nautilus I cannot write to it as it is owned by root.I have done some research on changing the permissions on this, but am none the wiser!!
Enabling the root account is rarely necessary. Almost everything you need to do as administrator of an Ubuntu system can be done via sudo or gksudo. If you really need a persistent root login, the best alternative is to simulate a root login shell using the following command.I cannot find gksudo and do not know what commands to use in the terminal to achieve my goal. I am in totally unfamiliar territory here, and need some fairly simple explanation and guidance to be able to claim my empty partition so I can read from and write to it.
View 7 Replies
View Related
Mar 19, 2010
I wanna make a small web server for local use , I've installed apache, every thing works fine I'm the root
I wanna protect the folder that contain the htdocs files (www), i don't want any users that not in root group to access (not even read)
I changed the permission of the htdocs folder as next
Owner: www (apache user)
per: creat , delete
group: root
per: creat , delete
other: none
it only works on the main folder that i changed its permissions ! not all sub folders and files ! were my steps right ? and are their anyway to change all folders and files at once ?
View 4 Replies
View Related
May 20, 2010
I'm attempting to set up a Samba share on my lab's small server (Ubuntu Server Edition, 10.04). It looked easy enough, but the share that I set up didn't allow anyone to actually put anything on it: no uploading stuff, etc. (You can still upload files via the command line, so I implemented the unix extensions = no fix). The share is writeable and visible, and anyone can access it (according to the Samba GUI). According to the smb.conf:
[Share]
path = /home/something/Share
writeable = yes
;browseable = yes
guest ok = yes
The other Windows machines in the lab see the new server and its share automatically, although they can't make changes to it, like create a new folder in the share. Most of my lab uses Snow Leopard (OS X 10.6), and a few others use Windows. I can connect to the server using my MacBook either through the terminal or Finder -> Go -> Connect to server -> smb://blah.someplace.edu without problems.
I can do pretty much anything via the command line, but not through the Finder! If I want to create a new folder, it gives me an old-school error message (stupid blue face): "The operation can't be competed because you don't have the necessary permission." If I want to drag-and-drop a file from my desktop to the Share folder, I get a pop-up window (lock + blue face): "Type your password to allow Finder to make changes." If I do, then I get another pop-up: "One or more items can't be copied to "Share" because you don't have permission to read them. Do you want to copy the items you are allowed to read?"
View 3 Replies
View Related
May 21, 2010
I am having a problem with Ubuntu 10.04. I was setting up network sharing with Samba. Set up went fine, then I decided to change the hostname.
Following instructions I found on the web, I edited etc/samba/samba.conf to reflect my desired hostname.
Now I have to use superuser to run synaptic or update center. I don't know what else I have "broken".
I would like to change my hostname, if I did it incorrectly for 10.04 please enlighten me.
View 2 Replies
View Related
Feb 23, 2010
one thing i can't seem to be able to do is give the guest account just these permissions: using firefox (or other browser) and using one file directory and using a text editor. means the guest can browse the net and sefe some infos form that - nothing more. the previous version had something like that, it was really easy for me, a noob, to do it with two or three clicks. if this possibiility exists, what to do. if it's not implemented... maybe it should be. 'cause many people let others use the computer but don't want any complications...
View 6 Replies
View Related
Oct 29, 2010
I tried to place a mono icon in usr/icons/etc but I didn't have the permission to do so. I tried to change my user profile to Admin, thinking I could go back to custom, but that hasn't and it isn't allowing me to go back to my previous setting.
Within minutes of being an Admin user I noticed I couldn't even unmount something. I really need to figure out how to change my profile back to default.
After that has been dealt with, I would like some guidance on how to gain root access to put my icon where it needs to be.
View 1 Replies
View Related
Nov 16, 2010
First let me say that Lubuntu is a lightweight version of Ubuntu, so there is not much point in loading it up with unnecessary packages. If you just want to share printers on a Linux network, you don't need Samba. And if you just want a way that users can "push" files to others on a network, use Giver (+ Avahi) as this is a better option. Especially as it sorts out file permissions for you.
To enable file sharing on a Lubuntu 10.10 machine, go to Preferences > Synaptic Package Manager and add the following:-
* samba
* system-config-samba
* gvfs-bin
* gvfs-backends
...accepting any dependancies, 11 packages in total.
I suggest you re-boot now. As an initial test, go to file manager (pcmanfm) and enter:-
smb://localhost
You should see the local print$ folder listed.
To access folder shares remotely
* open file manager (pcmanfm)
* enter the IP address or computer name of the machine you wish to access
e.g. smb://192.168.0.99 or smb://print-server
To share a folder:-
Go to: Preferences > Samba (enter password when requested)
In the Samba Configuration screen:-
* File > Add Share
* use Browse... to select folder to be shared
* Tick "Visible" and (if required} "Writable"
* In the "Access" select "Allow access to everyone"
Set the Linux permissions:-
* locate the folder to share in file manager
* right click on the folder and select Properties > Permissions
* set the required permissions, e.g. Other: Read & Write (to allow anyone full access)
View 7 Replies
View Related
Jun 28, 2011
I am experiencing strange difficulties with Samba. The permissions aren't set correctly, when creating a file or a folder on the mounted samba share.
My smb.conf looks as follows:
Code:
[shareOffice]
path = /home/shareOffice
writable = yes
browseable = yes
create mode = 0777
directory mask = 0777
force create mode = 0777
force directory mode = 0777
Now if I create a regular file on the folder:
Code:
touch testFile; ls -l
The permissions turn out to be:
Code:
-rwxr-xrwx 1 simon share 0 2011-06-28 21:42 testFile
Why the w bit on the group is missing? If I play around with the create mode / force create mode, I get every other possible permission output --- except the write access for group members.
View 3 Replies
View Related
Apr 2, 2010
I wanted to assign ownership of my choice to my zip file while unzipping so I am using the command:
unzip yourfile.zip|awk -F": " '{print $2}' | xargs chown user.group
I also want to give 705 permissions to all directories and 777 to all files on unzipping?
View 3 Replies
View Related
Feb 27, 2010
i am trying to finish up a lab in that i have i have some accounts created under groups called "mgmt" and "pl". I am trying to figure out how i can get the guys in "mgmt" to be able to modify files in a directory called "mgmt-final" but the guys in the group "pl" will only be allowed to read those files.
View 5 Replies
View Related