Fedora - to create a test file? / Samba - n00b(ish)


Hi,

#
mkdir bla
chmod 777 bla

All looking good

If I swap to a different user I can create a file

Command?

#touch test.txt ?

What other test are good?  I suppose I can ls -la to see file perms.

Anything else?

Oh Im not such a Fedoar n00b now :-)

fcekAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

faca5Commented:
Hello.

Yes you can I user have enouth permission.

Linux commands:
http://www.studiofaca.com/forum/osnovni-ukazi-v-linux-u-t295.html
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
farzanjCommented:
So are you just trying to play with permissions?

Looking for command to switch user?

su - userID


Yes, touch is command to create file or change its timestamps.

0
upanwarCommented:
# su -<username>   [To switch user]

# exit  [to quit the session from that user]

after giving chmod 777 you will be having enough permission.

# touch test.txt [It will create a empty file, If file is already exist it will modify the time stamp of file]

Could you please explain exactly what do you want to achieve so that we can help you in that manner.
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

farzanjCommented:
Now you can try adding sticky bit to the folder.

See what happens

chmod o+t foldername
0
fcekAuthor Commented:

farzanj:
Did
chmod o+t foldername
What does a  sticky bit do ?
0
farzanjCommented:
Yes it does.  So only the owner of the file can remove it.  Otherwise anyone with write permissions on the folder where the file resides can remove it.
0
fcekAuthor Commented:

sticky bit is cool :-)


0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.