Ubuntu :: Setting Permissions On A Partition

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


ADVERTISEMENT

OpenSUSE :: Setting Permissions On NTFS Partition?

May 3, 2010

I've recently installed an OpenSuse 11.2 in what I'd like to be a definitive jump from windows environment.I'm not very confident yet with my linux skills, so at this moment I've yet have both systems installed with a data NTFS partition to store music, movies, documents, and general data that I'd like to use in any of the two systems. The NTFS partition has no writting permissions for anybody except root user, so I can't work anything from my personal user without starting an app like su or login as root. I want to change this by making a group (windowsWriters) where my usual user is included wich I pretend to make the group owner of NTFS partition.

I've created the group and inserted my user into it, but I'm unable to change the owner group nor any permission on NTFS partition or any of it's subdirectories. I've tried to made it through opening dolphin as su (Alt+F2 kdesu dolphin) and through chmod in consolemode logged as root, in both cases the action seems to work correctly and no error is spotted, however when I look again at the partition/folder/file permissions/ownership no changes have been made.

View 9 Replies View Related

Ubuntu :: Setting Up FTP With Permissions?

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

Ubuntu Security :: Setting Permissions For Www User Only?

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

Ubuntu :: Setting Default File Permissions

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

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 View Related

Server :: Setting Up Samba On Ubuntu - Permissions?

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

Ubuntu Security :: Tight Guest Permissions Setting

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

Ubuntu :: Changing Icon And Setting User Permissions?

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

Ubuntu Networking :: Samba Configuration And Setting Permissions

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

Ubuntu Networking :: Samba Setting Permissions Not Correct

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

General :: Setting Permissions On Unzip?

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

Red Hat / Fedora :: Setting Group Permissions?

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

General :: Freenas Setting Up Permissions

May 29, 2010

I have set up freenas with 3 1tb hard drives. I have set up the SMB shares for the drives and can view each shared drive from each of the machines on my network. I can copy files from the hard drives, on the freenas but when I try to copy a file to the Freenas hard drives I get a message that I need permission to do this. I have all my shares set as anonymous how do I change the permissions so that I can save files to the drives.

View 1 Replies View Related

General :: Setting Permissions For UGO In One Command?

May 20, 2011

'the command I would use to change the group permission to write and the user and other to read and execute for the file "generate-report"' Sounds simple enough but I cant get it to work at all, tried doing a search in google and on the forums here to no avail. Is it possible to do in one command or will I need two?

Ive tried:

chmod g+w, uo+rx generate-report

And numerous other variants all with no luck.

View 3 Replies View Related

Security :: Setting Permissions On Different Groups?

Nov 26, 2010

We are a school and we share a samba folder with students and teacher groups. What we are trying to do is:

- Give students group users the permissions to rwx own files in folder

- Students must not be able to do anything with others files. I mean nothing so, at most, they could see the files in folder but not read it.

- Teachers can do anything with files in folder

As you can imagine, the idea is that students deliver their exams in that folder without the ability to read/copy the other students files. With sticky bit we can restrict students permissions to their own files, that is ok, but how to restrict all the permissions on other students files without restricting student access to that folder?

View 1 Replies View Related

Red Hat :: Setting Permissions On Usb Ports In CentOS 5.4?

Feb 24, 2010

I am running VirtualBox on CentOS 5.4 & am not able to connect the usb ports to the guest operating systems. When I click on the device menu & usb, the devices I have plugged in show up, but are greyed out. I had this problem on Mandriva when I first started using VirtualBox & had to put my user account in the USB group. My account is in the vboxusers group but there is no USB group on CentOS & I can't figure out how to give myself permission to the USB ports.

View 6 Replies View Related

Ubuntu :: When Setting Up NFS What Type Of File And Directory Permissions - Familiar With?

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

OpenSUSE :: 10.3 - Setting Permissions On Folder / Subfolders

Mar 18, 2010

I'm running OpenSuse 10.3 and I've tried to set permissions on my folder and subfolders from root:root to wwwrun:www. In the shell it shows all folders and files with the correct permissions, but in the GUI it still says root:root and so my web application can't write to it, until I manually set the subfolders permission in the GUI.

View 9 Replies View Related

OpenSUSE :: Setting Permissions For All Subfolders In Nautilus?

May 13, 2010

trying to set permissions on all subfolders by right clicking the top folder, permissions, setting the desired values, and then clicking the "Apply permissions to the enclosed files. It takes on the top Folder but not on any of the subfolders or their files.How can I set the permissions for all files and subfolders under a top level folder?

View 9 Replies View Related

Slackware :: Setting Permissions When USB Devices Plugged In

Jan 25, 2010

When I plug in a USB GPS device, using cypress_m8 module, is creates /dev/ttyUSB0 with read/write permissions for owner,root, and group, dialout. My question is really just where are the rules for setting these permissions and how exactly are the owner and group names set when /dev/ttyUSB0 is created, i.e. a serial USB device is plugged in.

View 3 Replies View Related

Debian :: Terminal Command - Setting Permissions For Directory

Jul 15, 2011

I have a directory '/usr/local/games/quake4'. I want permissions for the directory, along with everything in it set to:
Owner: Create and delete files
Group: Access files
Others: Access files
What would I type in terminal to make this happen?

View 14 Replies View Related

Debian Configuration :: Setting Permissions For USB Device On Boot?

Mar 23, 2011

I am trying to figure out what needs to be done to automatically set read/write permissions for everyone for my proprietary USB device on system boot. I have created a udev rules file which changes the permissions for the device when it is connected, but it does not change the permissions when the system is booted with the device already connected. The file looks like this:

SUBSYSTEM=="usb_device", SYSFS{idVendor}=="our vendor id", MODE="0666"

Does something else need to be added to the rules file to make it work when the system boots with the device connected? Is there some other script which needs to be created somewhere?

View 1 Replies View Related

General :: Setting Permissions For Specific User And Groups?

May 25, 2010

i wonder, why nobody has written about it ...

How can i grant permission for files to specific user or specific group ??

Updated:

We have 3 groups: "g12" ("u1" and "u2), "g34" and "g56".

"g12" should only read the file.

"g34" should write and read it.

"g56" should have all permissions (rwx).

And others should not access the file at all.

View 3 Replies View Related

General :: Setting Up Group Permissions For A Mounted Share?

Jul 6, 2010

Sorry if this is the wrong section for this type of question. Anyway, I have two servers running Ubuntu 10.04. Server A has an NFS share that is mounted on server B, and the former has this share set up with specific permissions for a group called netusers. This group basically grants its users read/write permissions, and blocking all of files from anyone who's not part of the group.My question is this: how can I set up the permissions on server B, such that if I was to add a new user on server B, he would have read/write access to the share? I tried adding a counterpart group called netusers with the same permissions on B, but that didn't work.

View 2 Replies View Related

General :: Setting Execute Permissions On Second Hard Drive

Apr 4, 2011

I am running Linux Mint on my primary hard drive, and I would like to access some folders I have on my second hard drive, which has Windows XP installed on it. However, whenever I try to use these folders, I am greeted with the error message, "The file is not marked as executable." While I know how to set files as executable whenever I am using folders on my Linux drive, whenever I try to set such permissions on my XP folders, I can't seem to make it work. The files revert to their former status, and I'm told that I don't have permission. Should I set the files as sharable from within XP, so that they aren't marked as read-only? Or is there another solution I've missed?

View 8 Replies View Related

Server :: Setting File / Dir Permissions On NFS Mount Different From Network?

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

Software :: Setting Permissions For A Program To Open A Port?

Aug 20, 2010

How do I set permision for a prog. to open a port? I need to permit Bitpim to open a port when I run it.

View 14 Replies View Related

CentOS 5 Server :: Setting User Permissions In NFSD

May 19, 2009

I am currently trying to replace my Windows Server with a CentOS 5.3 box running nfsd for file serving. I have it all up and running however I cant see anyway of securing user access rights to the shares as all you need to access them is just clone the User ID of a user authorized to access the share of any Linux system which seems a bit insecure to me? I was wondering if there was any advice on securing access to server shares in CentOS.

View 2 Replies View Related

Fedora Hardware :: Setting Correct Default Permissions On /dev/parport*

Jun 23, 2011

I know - who uses parallel ports any more? People like me with an excellent, but old, HP OfficeJetPro 1150C. This is an old problem marked [SOLVED] in the following link to nowhere:

[URL]

I'm at Fedora 13 - 2.6.34.8-68.fc13.i686.PAE

Problem
1. /dev/parport0 is not found by sane unless you reset permissions after each boot
2. hplip udev rules only seem to support usb devices.
3. there are no/dev/parport[0-9] rules in udev/rules.d anymore
4. Did I read something about these ports being handled by HAL ACLs? If so, how do you do it?

default:
ls -laF /dev/parport0
crw-rw---- 1 root lp 99, 0 Jun 23 07:48 /dev/parport0

must do at each boot: sudo chmod 666 /dev/parport0

View 4 Replies View Related







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