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


ADVERTISEMENT

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

General :: Setting Read Permissions Of A Directory For Root User Only?

Mar 21, 2010

I'm using ubuntu 9.10. I used the command:

root@aduait-laptop:~# sudo chown -R root:root /media/104B-FF96/Private to set the permissions of Private folder for root but it is giving error:

Code:
root@aduait-laptop:~# sudo chown -R root:root /media/104B-FF96/Private
chown: changing ownership of `/media/104B-FF96/Private/5.jpg': Operation not permitted
chown: changing ownership of `/media/104B-FF96/Private/6.jpg': Operation not permitted
chown: changing ownership of `/media/104B-FF96/Private/7.jpg': Operation not permitted

[Code].....

View 5 Replies View Related

Debian :: Recursively Set Permissions For Certain Type Of File?

Aug 5, 2011

I want to set all directories in /example/ to +x without setting any non-directory files to +x, using the -R option of chmod. There must be a way to do this yes?

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

Security :: Setting File Permissions For File /var/log/Xorg.0.log?

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

Ubuntu :: Setting File Permissions For A File?

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

Software :: Setting Association Between PLS File Type And A Given Media Player In Firefox?

Jun 11, 2011

Kernel 2.6.21.5, Slackware 12.0 When I click on some audio stream links in my web browser (Mozilla Firefox), the stream comes in a URL ending in .pls, usually listen.pls. As I want mplayer to play it and not the default player, I intend to make the first the default one. In Firefox (2.0.0.4) I can do Edit>Preferences>Content>File Types>Manage and change the actions associated with each file type. However, if the type is, say, PDF, I can can only change the action if a PDF file has anytime been downloaded. So, the same goes for a PLS file.

You have an example of the kind of link I talk about here: [URL] In the case of a radio broadcast audio stream, I am not downloading it, I think. At least, the Download window does not open. The Download window not having open itsef, the PLS type does not appear in the window Edit>...>File Types>Manage leads to. And so, I cannot change the action. The action would be 'Open them with this application': mplayer.

View 2 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 :: Grub Error 2 - Bad File Or Directory Type

May 19, 2010

I am building centos - debian dual boot system. Each os has separate boot partition, both ext3.
Installed Centos 5.5 x86 with grub into MBR.
Installed debian 5.0.4 x86 with no boot loader.
Added debian to centos boot partitions grub.conf

Centos boots fine. When I tried to boot debian I got grub error:
Code:
Error 2: Bad file or directory type

Grub's command line auto compledion didn't work on debians boot partition - looks like it does't recognize that partition as ext3 (but when I booted centos and tried to mount debian boot partiotion - no problem it mounted ). And this is not single fs corruption - after another debian reinstallation the problem remained. Anyway recreating that fs using "mke2fs -j /dev/sdxx" solved the problem.

View 2 Replies View Related

Ubuntu :: Directory Automatically Changing File Permissions

Jul 12, 2010

Is there a way to have a directory automatically change the permissions of a file that is written to it? I have a program which saves files to a directory, and gives those files read-only permissions to members in the group. This is a problem, because other users of my computer need to be able to edit these files. The directory itself has rw permissions for group members.

I guess what I am looking for is a way for the directory permissions to "override" the permissions the program is trying to save the files as. For example, if the directory has "rw" permissions for the group, then any file saved to it will automatically get the same permissions, regardless of what the program writing the file is trying to do.

View 3 Replies View Related

Installation :: Change The Boot Partition - Error: Bad File Or Directory Type?

Jan 31, 2010

I have presently a (working) boot dedicated partition, where grub stuff resides, but I want to change it to a common "/boot" folder in the root partition (in a different hdd). For some reason I can't do it. The first thing I did was to copy all the things that are in the boot partition to a boot folder on the root partition. After that, I tried: grub-install /dev/hdc1 (which is odd but it's where the root partition actually is)

When I did it from the linux I have installed on my hdd, it actually did something, I don't remember all the output (except that there was something about it not being able to access hda, which is oddly the dvdrom), but it didn't work. From a live CD, the same command (grub-install /dev/hdc1) is answered with: Could not find device for /boot: Not found or not a block device. From grub's own prompt, the things are more or less the same. First of all, it does not find stage1, even though I did copy the content from the boot partition to a boot folder in the root partition.

I tried to proceed, anyway, with root (hd1,0) and setup (hd1,0) (which is /dev/hdc1, according with the "geometry" info given by grub). "Root" is accepted, but "setup" is answered with: Checking if "/boot/grub/stage1" exists... no Checking if "/grub/stage1" exists... no Error 2: Bad file or directory type But the files are there. I can't "cat" the menu.lst from grub though, unlike with the actual working boot partition. The same error message. From the terminal, however, it's all there. I tried with /dev/hdc1 both mounted and unmounted, the same message. So, basically I have two questions, I guess:

1 - can I really do this sort of thing running a linux installed on a hdd, rather than a live cd, or is the live cd preferable for some reason?

2 - what am I missing?

(A note that may worth making is that I'm using the soon-to-be deprecated grub version, 0.9 or something, not grub2. I think it shouldn't be a problem since I've installed the system with the old version to begin with, but that may be irrelevant, I don't really know)

View 6 Replies View Related

OpenSUSE Install :: Copy A File Into Root Folder - Setting The Access Permissions?

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

General :: Rpm - Overriding Installed File / Directory Permissions & Owners?

Jun 29, 2010

Every time I update certain packages with rpm/yum, they reset certain permissions on their files / directories which I have intentionally changed for various reasons. Is there a way I can override the permissions that the packagers have specified in the RPMs, and force it to keep the permissions/owner/group that I've set?On a Debian system, I would just use "dpkg-statoverride". I can't find any equivalent for RPM systems (CentOS 4 & 5 in my case).

View 1 Replies View Related

General :: Concept Of Umask - Default File And Directory Permissions

Apr 14, 2010

I am using Red Hat Linux 4 .There are some few questions in my mind related to umask. I want to know that is the default file and directory permissions ?

- When we use umask (022) command in terminal. and create a new file then the permissions applied for new file is for that session and when the system will reboot linux will take automatically its default permission from etc/bashrc or /etc/profile ?
- Can we make our own umask or the professional way is to follow 022 only ?
- What is the benefit of umask in Linux?

View 2 Replies View Related

Ubuntu :: Changing File System Type To Another Filesystem Type - Does It Effect On Data?

Feb 4, 2011

In my system around 73gb(pc-desktop) i have,1 primary partition(windows)-25gb, 1-extended partition(remaining gb) 3 logical partitions were there in (under) extended partition in one of the logical partition is d:drive. in my hard disk d: drive is -/dev/sda5

previosly i was fat -file system , (d:drive-/dev/sda5), i remember i changed the d: drive(d:drive-/dev/sda5) file system to ext4file system ,with following command using terminal

After doing(changing the file system)this one ,i couldnt see the d:drive data

By doing that

1q) Did i reformatted the partition? i think the new filesystem(ext4) has no knowledge of the data that was on it when it had a FAT filesystem.

2q) How to do undo operation,i tried to change the filesystem type to fat/ntfs in terminal using command --sudo mkfs -t FAT /dev/sda5.

Result:its showing text message-'mkfs.FAT: No such file or directory'(not in single quote)

I had very imp data in d:drive

View 1 Replies View Related

General :: Getting Content-type/Mime Type Of The File Using Shellscript

May 24, 2011

I am copying the file form one directory to another directory using shellscript.

Here i want to get the Mimetype/Content-type of the file.

How to i can get the MimeType.

View 9 Replies View Related

Ubuntu :: Directory Corrupted - Error "Could Not Display "nikki Stuff", The File Is Of Unknown Type"

Aug 16, 2010

A directory on my desktop has recently become inaccessible. The error message that is given when I attempt to open the directory is as follows: Could not display "nikki stuff", The file is of unknown type. I brought up a terminal and did an ls -l on the directory, which produced the following: -rwxrwxrwx 1 nikki nikki 314 2010-07-26 19:16 nikkis%20stuff.desktop Unfortunately, the computer is not mine, so I do not know much more about how this happened.

View 2 Replies View Related

Ubuntu :: Change Permissions For File / Add These Lines Without Changing Permissions?

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

CentOS 5 :: Setting Up PhpMyAdmin - Error "no Such File Or Directory"

Jul 7, 2010

problem installing phpMyAdmin on CentOS 5 I believe i did install phpMyAdmin Correctly I can even see it in the directory in usr/share/phpmyadmin I also setup the blowfish password and i also change the [auth] cookies to html. and i allow 127.0.0.1 to access it But when i type [URL] it replies no such file or directory. I even tried [URL]

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

OpenSUSE Install :: Keeping Familiar Hostname In SUZE 11.2?

Jan 6, 2010

I managed a first installation of SUZE 11.2 from a mag distro - downloaded the iso file - burned the dvd, installed again, looking to retain the host name for this computer. But for the second time I get a linuxXXXXX sort of host name! No chance to set my preferred one up. I like what I've seen of SUZE so far and am happy to move to it sort of permanently. This legacy hostname helps me keep sane in networking matters though and I have yet to configure a networked laserprinter and add another computer. Can I re-set the hostname to my selection without harming the whole set-up?

View 5 Replies View Related

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

Debian Installation :: Squeeze Defaults To KDE - Changing The Familiar Behaviour Of The Installer

Feb 8, 2011

I just finished reinstalling Squeeze on my little netbook using the debian-6.0.0-i386-netinst.iso and accepting just about all defaults, including that for the Desktop environment in tasksel. It appeared upon rebooting that, much to my surprise, KDE had been installed -- not the usual Gnome. Of course, there's nothing inherently wrong with KDE, but changing the familiar behaviour of the Debian Installer (i.e. to install Gnome) without warning seems a bit much to this long-time Debian user...

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

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

Slackware :: [slackware64-current] Cfdisk Setting Partition Type?

Jan 28, 2011

I've just synchronized my slackware64-current mirror, iso burned, booting, starting cfdisk, creating a partition, and I'm not able to set the partition type to `Linux Raid Autodetect` (FD) or any other, that needs 2 characters to be entered in cfdisk -> Type.Cfdisk alows only one character to be entered ("F" or any other).

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







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